@serenity-is/sleekgrid
@serenity-is/sleekgrid
Table of contents
Namespaces
Classes
- AutoTooltips
- CellRange
- CheckboxEditor
- DateEditor
- EditorLock
- EventData
- EventEmitter
- EventSubscriber
- FloatEditor
- GlobalEditorLock
- Grid
- Group
- GroupItemMetadataProvider
- GroupTotals
- IntegerEditor
- LongTextEditor
- NonDataRow
- PercentCompleteEditor
- RowMoveManager
- RowSelectionModel
- TextEditor
- YesNoSelectEditor
Interfaces
- ArgsAddNewRow
- ArgsCell
- ArgsCellChange
- ArgsCellEdit
- ArgsColumn
- ArgsColumnNode
- ArgsCssStyle
- ArgsEditorDestroy
- ArgsGrid
- ArgsScroll
- ArgsSelectedRowsChange
- ArgsSort
- ArgsValidationError
- AutoTooltipsOptions
- Column
- ColumnMetadata
- ColumnSort
- CompatFormatterResult
- EditCommand
- EditController
- Editor
- EditorClass
- EditorFactory
- EditorHost
- EditorOptions
- FormatterContext
- FormatterFactory
- GridOptions
- GroupItemMetadataProviderOptions
- IEventData
- IPlugin
- ItemMetadata
- LayoutEngine
- LayoutHost
- Position
- RowCell
- RowMoveManagerOptions
- RowSelectionModelOptions
- SelectionModel
- ValidationResult
- ViewRange
- ViewportInfo
Type Aliases
- ArgsSortCol
- AsyncPostCleanup
- AsyncPostRender
- CellStylesHash
- ColumnFormat
- CompatFormatter
- FormatterResult
Variables
Functions
- CheckboxFormatter
- CheckmarkFormatter
- H
- PercentCompleteBarFormatter
- PercentCompleteFormatter
- YesNoFormatter
- addClass
- applyFormatterResultToCellNode
- convertCompatFormatter
- defaultColumnFormat
- disableSelection
- escapeHtml
- initializeColumns
- parsePx
- patchEvent
- removeClass
- spacerDiv
- titleize
Type Aliases
ArgsSortCol
Ƭ ArgsSortCol: Object
Type declaration
Name | Type |
---|---|
sortAsc |
boolean |
sortCol |
Column |
Defined in
AsyncPostCleanup
Ƭ AsyncPostCleanup<TItem
>: (cellNode
: HTMLElement
, row?
: number
, column?
: Column
<TItem
>) => void
Type parameters
Name | Type |
---|---|
TItem |
any |
Type declaration
▸ (cellNode
, row?
, column?
): void
Parameters
Name | Type |
---|---|
cellNode |
HTMLElement |
row? |
number |
column? |
Column <TItem > |
Returns
void
Defined in
AsyncPostRender
Ƭ AsyncPostRender<TItem
>: (cellNode
: HTMLElement
, row
: number
, item
: TItem
, column
: Column
<TItem
>, reRender
: boolean
) => void
Type parameters
Name | Type |
---|---|
TItem |
any |
Type declaration
▸ (cellNode
, row
, item
, column
, reRender
): void
Parameters
Name | Type |
---|---|
cellNode |
HTMLElement |
row |
number |
item |
TItem |
column |
Column <TItem > |
reRender |
boolean |
Returns
void
Defined in
CellStylesHash
Ƭ CellStylesHash: Object
Index signature
▪ [row: number
]: { [columnId: string]
: string
; }
Defined in
ColumnFormat
Ƭ ColumnFormat<TItem
>: (ctx
: FormatterContext
<TItem
>) => FormatterResult
Type parameters
Name | Type |
---|---|
TItem |
any |
Type declaration
▸ (ctx
): FormatterResult
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <TItem > |
Returns
Defined in
CompatFormatter
Ƭ CompatFormatter<TItem
>: (row
: number
, cell
: number
, value
: any
, column
: Column
<TItem
>, item
: TItem
, grid?
: any
) => string
| CompatFormatterResult
Type parameters
Name | Type |
---|---|
TItem |
any |
Type declaration
▸ (row
, cell
, value
, column
, item
, grid?
): string
| CompatFormatterResult
Parameters
Name | Type |
---|---|
row |
number |
cell |
number |
value |
any |
column |
Column <TItem > |
item |
TItem |
grid? |
any |
Returns
string
| CompatFormatterResult
Defined in
FormatterResult
Ƭ FormatterResult: string
| Element
| DocumentFragment
Defined in
Variables
BasicLayout
• Const
BasicLayout: () => LayoutEngine
Type declaration
• new BasicLayout(): LayoutEngine
Returns
Defined in
FrozenLayout
• Const
FrozenLayout: () => LayoutEngine
Type declaration
• new FrozenLayout(): LayoutEngine
Returns
Defined in
columnDefaults
• Const
columnDefaults: Partial
<Column
>
Defined in
gridDefaults
• Const
gridDefaults: GridOptions
Defined in
keyCode
• Const
keyCode: Object
Deprecated
Type declaration
Name | Type |
---|---|
BACKSPACE |
number |
DELETE |
number |
DOWN |
number |
END |
number |
ENTER |
number |
ESCAPE |
number |
HOME |
number |
INSERT |
number |
LEFT |
number |
PAGEDOWN |
number |
PAGEUP |
number |
RIGHT |
number |
TAB |
number |
UP |
number |
Defined in
preClickClassName
• Const
preClickClassName: "slick-edit-preclick"
Defined in
Functions
CheckboxFormatter
▸ CheckboxFormatter(ctx
): string
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
string
Defined in
CheckmarkFormatter
▸ CheckmarkFormatter(ctx
): ""
| "<i class=\"slick-checkmark\"></i>"
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
""
| "<i class=\"slick-checkmark\"></i>"
Defined in
H
▸ H<K
>(tag
, attr?
, ...children
): HTMLElementTagNameMap
[K
]
Type parameters
Name | Type |
---|---|
K |
extends keyof HTMLElementTagNameMap |
Parameters
Name | Type |
---|---|
tag |
K |
attr? |
Object |
attr.ref? |
(el? : HTMLElementTagNameMap [K ]) => void |
...children |
(string | Node )[] |
Returns
HTMLElementTagNameMap
[K
]
Defined in
PercentCompleteBarFormatter
▸ PercentCompleteBarFormatter(ctx
): string
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
string
Defined in
PercentCompleteFormatter
▸ PercentCompleteFormatter(ctx
): string
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
string
Defined in
YesNoFormatter
▸ YesNoFormatter(ctx
): "Yes"
| "No"
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
"Yes"
| "No"
Defined in
addClass
▸ addClass(el
, cls
): void
Parameters
Name | Type |
---|---|
el |
Element |
cls |
string |
Returns
void
Defined in
applyFormatterResultToCellNode
▸ applyFormatterResultToCellNode(ctx
, html
, node
): void
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
html |
FormatterResult |
node |
HTMLElement |
Returns
void
Defined in
convertCompatFormatter
▸ convertCompatFormatter(compatFormatter
): ColumnFormat
Parameters
Name | Type |
---|---|
compatFormatter |
CompatFormatter <any > |
Returns
Defined in
defaultColumnFormat
▸ defaultColumnFormat(ctx
): any
Parameters
Name | Type |
---|---|
ctx |
FormatterContext <any > |
Returns
any
Defined in
disableSelection
▸ disableSelection(target
): void
Parameters
Name | Type |
---|---|
target |
HTMLElement |
Returns
void
Defined in
escapeHtml
▸ escapeHtml(s
): any
Parameters
Name | Type |
---|---|
s |
any |
Returns
any
Defined in
initializeColumns
▸ initializeColumns(columns
, defaults
): void
Parameters
Name | Type |
---|---|
columns |
Column <any >[] |
defaults |
Partial <Column <any >> |
Returns
void
Defined in
parsePx
▸ parsePx(str
): number
Parameters
Name | Type |
---|---|
str |
string |
Returns
number
Defined in
patchEvent
▸ patchEvent(e
): IEventData
Parameters
Name | Type |
---|---|
e |
IEventData |
Returns
Defined in
removeClass
▸ removeClass(el
, cls
): void
Parameters
Name | Type |
---|---|
el |
Element |
cls |
string |
Returns
void
Defined in
spacerDiv
▸ spacerDiv(width
): HTMLDivElement
Parameters
Name | Type |
---|---|
width |
string |
Returns
HTMLDivElement
Defined in
titleize
▸ titleize(str
): string
Parameters
Name | Type |
---|---|
str |
string |
Returns
string