Constructors
constructor
- new GridInterface<T>(gridConfig, datasource): GridInterface<T>
Methods
addEventListener
- addEventListener(callable): void
Returns void
autoResizeColumns
- autoResizeColumns(): void
Returns void
cellAppendClassSetter
- cellAppendClassSetter(callback): void
Parameters
- callback: ((attribute: string, rowData: Entity, cellReadOnlyConfig: boolean) => {
dimmedClass: string;
inputClass: string;
})- (attribute, rowData, cellReadOnlyConfig): {
dimmedClass: string;
inputClass: string;
} Parameters
- attribute: string
- rowData: Entity
- cellReadOnlyConfig: boolean
Returns {
dimmedClass: string;
inputClass: string;
}
dimmedClass: string
inputClass: string
Returns void
connectGrid
- connectGrid(grid): void
Returns void
contextMenuCustom
- contextMenuCustom(event, options, cell, callback): void
Parameters
- event: MouseEvent
- options: {
isHeader?: boolean;
label: string;
value: string;
}[] - cell: HTMLElement
- callback: ((attribute: string) => void)
- (attribute): void
Returns void
Returns void
getAttributeColumns
- getAttributeColumns(filterSelectedColumns?): string[]
Parameters
- filterSelectedColumns: boolean = true
Returns string[]
getContextMenuElement
- getContextMenuElement(): HTMLElement
Returns HTMLElement
getDatasource
- getDatasource(): Datasource<T>
getOptionalAttributes
- getOptionalAttributes(): string[]
Returns string[]
loadConfig
- loadConfig(gridConfig, skipRebuild?): void
Parameters
- gridConfig: GridConfig
- skipRebuild: boolean = false
Returns void
loadInitConfig
- loadInitConfig(): void
Returns void
openFilterEditor
- openFilterEditor(): void
Returns void
readonlySetter
- readonlySetter(callback): void
Parameters
- callback: ((attribute: string, rowData: Entity, cellReadOnlyConfig: boolean) => boolean)
- (attribute, rowData, cellReadOnlyConfig): boolean
Parameters
- attribute: string
- rowData: Entity
- cellReadOnlyConfig: boolean
Returns boolean
Returns void
removeContextMenuElement
- removeContextMenuElement(): void
Returns void
removeEventListener
- removeEventListener(callable): void
Returns void
saveConfig
- saveConfig(): GridConfig
setContextMenuElement
- setContextMenuElement(el): void
Returns void
triggerRebuild
- triggerRebuild(): void
Returns void
triggerScrollEvent
- triggerScrollEvent(): void
Returns void
updateInitConfig
- updateInitConfig(gridConfig, load?): void
Returns void
grid interface is what user have access to controll grid behavior