@serenity-is/sleekgrid / GridOptions
Interface: GridOptions<TItem>
Type parameters
Name | Type |
---|---|
TItem |
any |
Table of contents
Properties
- addNewRowCssClass
- alwaysAllowHorizontalScroll
- alwaysShowVerticalScroll
- asyncEditorLoadDelay
- asyncEditorLoading
- asyncPostCleanupDelay
- asyncPostRenderDelay
- autoEdit
- autoHeight
- cellFlashingCssClass
- cellHighlightCssClass
- columns
- createPreHeaderPanel
- dataItemColumnValueExtractor
- defaultColumnWidth
- defaultFormat
- defaultFormatter
- editCommandHandler
- editable
- editorCellNavOnLRKeys
- editorFactory
- editorLock
- emptyNode
- enableAddRow
- enableAsyncPostRender
- enableAsyncPostRenderCleanup
- enableCellNavigation
- enableCellRangeSelection
- enableColumnReorder
- enableRowReordering
- enableTabKeyNavigation
- enableTextSelectionOnCells
- explicitInitialization
- footerRowHeight
- forceFitColumns
- forceSyncScrollInterval
- forceSyncScrolling
- formatterFactory
- frozenBottom
- frozenColumns
- frozenRows
- fullWidthRows
- groupTotalsFormatter
- groupingPanel
- groupingPanelHeight
- headerRowHeight
- jQuery
- layoutEngine
- leaveSpaceForNewRows
- minBuffer
- multiColumnSort
- multiSelect
- preHeaderPanelHeight
- removeNode
- renderAllCells
- rowHeight
- rtl
- selectedCellCssClass
- showCellSelection
- showColumnHeader
- showFooterRow
- showGroupingPanel
- showHeaderRow
- showPreHeaderPanel
- showTopPanel
- slickCompat
- suppressActiveCellChangeOnEdit
- syncColumnCellResize
- topPanelHeight
- useCssVars
- useLegacyUI
- viewportClass
Properties
addNewRowCssClass
• Optional
addNewRowCssClass: string
Defined in
alwaysAllowHorizontalScroll
• Optional
alwaysAllowHorizontalScroll: boolean
Defined in
alwaysShowVerticalScroll
• Optional
alwaysShowVerticalScroll: boolean
Defined in
asyncEditorLoadDelay
• Optional
asyncEditorLoadDelay: number
Defined in
asyncEditorLoading
• Optional
asyncEditorLoading: boolean
Defined in
asyncPostCleanupDelay
• Optional
asyncPostCleanupDelay: number
Defined in
asyncPostRenderDelay
• Optional
asyncPostRenderDelay: number
Defined in
autoEdit
• Optional
autoEdit: boolean
Defined in
autoHeight
• Optional
autoHeight: boolean
Defined in
cellFlashingCssClass
• Optional
cellFlashingCssClass: string
Defined in
cellHighlightCssClass
• Optional
cellHighlightCssClass: string
Defined in
columns
• Optional
columns: Column
<TItem
>[]
Defined in
createPreHeaderPanel
• Optional
createPreHeaderPanel: boolean
Defined in
dataItemColumnValueExtractor
• Optional
dataItemColumnValueExtractor: (item
: TItem
, column
: Column
<TItem
>) => void
Type declaration
▸ (item
, column
): void
Parameters
Name | Type |
---|---|
item |
TItem |
column |
Column <TItem > |
Returns
void
Defined in
defaultColumnWidth
• Optional
defaultColumnWidth: number
Defined in
defaultFormat
• Optional
defaultFormat: ColumnFormat
<TItem
>
Defined in
defaultFormatter
• Optional
defaultFormatter: CompatFormatter
<TItem
>
Defined in
editCommandHandler
• Optional
editCommandHandler: (item
: TItem
, column
: Column
<TItem
>, command
: EditCommand
) => void
Type declaration
▸ (item
, column
, command
): void
Parameters
Name | Type |
---|---|
item |
TItem |
column |
Column <TItem > |
command |
EditCommand |
Returns
void
Defined in
editable
• Optional
editable: boolean
Defined in
editorCellNavOnLRKeys
• Optional
editorCellNavOnLRKeys: boolean
Defined in
editorFactory
• Optional
editorFactory: EditorFactory
Defined in
editorLock
• Optional
editorLock: EditorLock
Defined in
emptyNode
• Optional
emptyNode: (node
: Element
) => void
Type declaration
▸ (node
): void
Parameters
Name | Type |
---|---|
node |
Element |
Returns
void
Defined in
enableAddRow
• Optional
enableAddRow: boolean
Defined in
enableAsyncPostRender
• Optional
enableAsyncPostRender: boolean
Defined in
enableAsyncPostRenderCleanup
• Optional
enableAsyncPostRenderCleanup: boolean
Defined in
enableCellNavigation
• Optional
enableCellNavigation: boolean
Defined in
enableCellRangeSelection
• Optional
enableCellRangeSelection: boolean
Defined in
enableColumnReorder
• Optional
enableColumnReorder: boolean
Defined in
enableRowReordering
• Optional
enableRowReordering: boolean
Defined in
enableTabKeyNavigation
• Optional
enableTabKeyNavigation: boolean
Defined in
enableTextSelectionOnCells
• Optional
enableTextSelectionOnCells: boolean
Defined in
explicitInitialization
• Optional
explicitInitialization: boolean
Defined in
footerRowHeight
• Optional
footerRowHeight: number
Defined in
forceFitColumns
• Optional
forceFitColumns: boolean
Defined in
forceSyncScrollInterval
• Optional
forceSyncScrollInterval: number
Defined in
forceSyncScrolling
• Optional
forceSyncScrolling: boolean
Defined in
formatterFactory
• Optional
formatterFactory: FormatterFactory
<any
>
Defined in
frozenBottom
• Optional
frozenBottom: boolean
Defined in
frozenColumns
• Optional
frozenColumns: number
Defined in
frozenRows
• Optional
frozenRows: number
Defined in
fullWidthRows
• Optional
fullWidthRows: boolean
Defined in
groupTotalsFormatter
• Optional
groupTotalsFormatter: (p1?
: GroupTotals
<TItem
>, p2?
: Column
<TItem
>, grid?
: any
) => string
Type declaration
▸ (p1?
, p2?
, grid?
): string
Parameters
Name | Type |
---|---|
p1? |
GroupTotals <TItem > |
p2? |
Column <TItem > |
grid? |
any |
Returns
string
Defined in
groupingPanel
• Optional
groupingPanel: boolean
Defined in
groupingPanelHeight
• Optional
groupingPanelHeight: number
Defined in
headerRowHeight
• Optional
headerRowHeight: number
Defined in
jQuery
• Optional
jQuery: Object
Type declaration
Name | Type |
---|---|
fn |
any |
ready |
any |
Defined in
layoutEngine
• Optional
layoutEngine: LayoutEngine
Defined in
leaveSpaceForNewRows
• Optional
leaveSpaceForNewRows: boolean
Defined in
minBuffer
• Optional
minBuffer: number
Defined in
multiColumnSort
• Optional
multiColumnSort: boolean
Defined in
multiSelect
• Optional
multiSelect: boolean
Defined in
preHeaderPanelHeight
• Optional
preHeaderPanelHeight: number
Defined in
removeNode
• Optional
removeNode: (node
: Element
) => void
Type declaration
▸ (node
): void
Parameters
Name | Type |
---|---|
node |
Element |
Returns
void
Defined in
renderAllCells
• Optional
renderAllCells: boolean
Defined in
rowHeight
• Optional
rowHeight: number
Defined in
rtl
• Optional
rtl: boolean
Defined in
selectedCellCssClass
• Optional
selectedCellCssClass: string
Defined in
showCellSelection
• Optional
showCellSelection: boolean
Defined in
showColumnHeader
• Optional
showColumnHeader: boolean
Defined in
showFooterRow
• Optional
showFooterRow: boolean
Defined in
showGroupingPanel
• Optional
showGroupingPanel: boolean
Defined in
showHeaderRow
• Optional
showHeaderRow: boolean
Defined in
showPreHeaderPanel
• Optional
showPreHeaderPanel: boolean
Defined in
showTopPanel
• Optional
showTopPanel: boolean
Defined in
slickCompat
• Optional
slickCompat: boolean
Defined in
suppressActiveCellChangeOnEdit
• Optional
suppressActiveCellChangeOnEdit: boolean
Defined in
syncColumnCellResize
• Optional
syncColumnCellResize: boolean
Defined in
topPanelHeight
• Optional
topPanelHeight: number
Defined in
useCssVars
• Optional
useCssVars: boolean
Defined in
useLegacyUI
• Optional
useLegacyUI: boolean
Defined in
viewportClass
• Optional
viewportClass: string