import { AngularReactiveTableModule } from 'angular-reactive-table';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AngularReactiveTableModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
<x-angular-reactive-table (CBScrollEnd)="scrollEnd($event)" (CBSelectAll)="selectAll($event)" (CBSelect)="select($event)" (CBEdit)="test($event)" [config]="table_config" [column]="table_column" [data]="test_data">
CBScrollEnd - Emit when scroll reached end.
CBSelectAll - Emit when you toggle select all checkbox.(returns the row value)
CBSelect - Emit when you toggle select row. (returns the row value)
CBEdit - Emit when you click the edit icon. (returns the row value)
enableSelect?: boolean,
minWidth?: string,
defaultWidth?: string
maxWidth: string,
height: number,
tdMinWidth: number,
enableActionColumn?: boolean,
enableEdit?: boolean,
enableDelete?: boolean,
cssClass?: string
order: number,
prefix: string, // Important
label: string, // Label of your th
sortable: boolean // Enable sort by column