Angular AG Grid

    0

    0

    toperbermudez

    gridOptions: { columnDefs: [ { headerName:'COLUMN1', field: 'COLUMN1', width: 200 }, ], defaultColDef: { sortable:true, resizable:true }, onGridReady: (params: GridReadyEvent<any>) => { this.gridData = params.

    Library: angular

    import { CellClickedEvent, GridApi, GridReadyEvent } from 'ag-grid-community';
    
    /** variables */
    loadingOverlay = this.global.grid.loadingOverlay;
    noRowsOverlay = this.global.grid.noRowsOverlay;
    gridData!:GridApi<any>;
    data:any;
    dataCount = 0;
    searchKey = "";
    
    /** grid options */
      gridOptions = {
        columnDefs: [
          { headerName:'COLUMN1', field: 'COLUMN1', width: 200 },
        ],
        defaultColDef: {
          sortable:true,
          resizable:true
        },
        onGridReady: (params: GridReadyEvent<any>) => {
          this.gridData = params.api;
        },
        onCellClicked:(e:CellClickedEvent):void => {
          /*DO SOMETHING HERE*/
        }
      }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.