0.1.5 • Published 1 year ago

@extension-packages/ag-grid-angular v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@extension-packages/ag-grid-angular

Link to docs: http://extension-packages.github.io/ag-grid-angular

Ag Grid Extension

Extends ag-grid with a toolbar, search and actions.

Ag Grid Extension

Prerequisites

<!-- Google icon-font: https://developers.google.com/fonts/docs/material_icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />

Features:

Usage Overview

@Component({
  standalone: true,
  selector: "app-demo-grid",
  imports: [AgGridExtensionModule],
  template: `
    <ag-grid-extension class="ag-theme-balham" [actions]="actions">
      <ag-grid-angular [gridOptions]="gridOptions"></ag-grid-angular>
    </ag-grid-extension>
  `,
})
export class DemoGridComponent {
  actions: AgGridToolbarAction = [
    {
      color: "seagreen",
      icon: "plus",
      tooltip: "Add new row",
      clickFn: (event) => {
        const rowData = {...};
        event.api.applyTransaction({ add: [rowData], addIndex: 0 });
      }
    },
    {
      color: "dodgerblue",
      icon: "eye",
      tooltip: "Edit row",
      clickFn: ({ api, context }) => {
        const rowData = api.getSelectedRows()[0];
        // ... some logic
      }
    },
    {}, // seprator
    ...
  ];
  gridOptions: GridOptions;
}
0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago