0.0.3 • Published 4 years ago

ngx-ck-grid v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

NGXCkGrid

A resposive grid with lazy load feature to draw hierarchical data/tree data structure.

The grid is developed to solve real world problem to bind tree data structure.Also the grid is purely angular based .

Installation

Install with npm:

npm install ngx-ck-grid

Import the ngx-ck-grid module to your application module:

import { NGXCkGridModule } from 'ngx-ck-grid';

@NgModule({

declarations: [...],

imports: [NGXCkGridModule,...],

bootstrap: [AppComponent]

})

export class AppModule { }

Usage

  <ngx-ck-grid
    [tableOptions]="tableOptions"
    (gridRowSelection)="gridRowSelection($event)"
  ></ngx-ck-grid>

Configuration

To bind data and columns to grid use TableConfiguration class to define properties ,columns and data.

Properties

NameDatatypeDescription
idstringsets unique id for a grid
dataObject ArrayAn array of objects with key and values
columnsColumnConfigurationUse ColumnConfiguration interface to define column properties
enableRowSelectionbooleanUse true or false to enable/disable row selection
rowSelectionstringsingle or multiple
enableColumnChooserbooleanUse true or false to enable/disable column chooser
enableSortbooleanUse true or false to enable/disable sorting
enableFixedHeaderbooleanUse true or false to enable/disable fixed header
showSpinnerbooleanUse true or false to enable/disable sppinner on scroll/sort/filter
enableColumnFiltersbooleanUse true or false to enable/disable column filters
isTreeStructurebooleanUse true or false to define tree structure
enableContextMenubooleanUse true or false to enable/disable grid context menu
contextMenuItemsContextMenuItems[]Use ContextMenuItems[] interfac to define context menus
iconsTableIconUse TableIcon interfac to define icons for the grid

Events

NameDescription
gridRowClickFired on row click
gridCellClickFired on cell click
gridExpandCollapseClickFired on Exapnd/Collapse icon click
gridContextMenuClickFired on grid context menu click

Demo

Demo available at git hub repository ngxCKGridDemo.

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago