constructor
flagrate.createGrid
flagrate.createGrid(option) → flagrate.Grid
new flagrate.Grid
option
(Object
) – configuration for the grid.
Create and initialize the grid.
option
id
(String):id
attribute of container.className
(String):attribute
(Object):style
(Object): (using flagrate.Element.setStyle)cols
(Array): of col object.rows
(Array): of row object.pagination
(Boolean; defaultfalse
):numberOfRowsPerPage
(Number; default20
): pagination.fill
(Boolean; defaultfalse
):headless
(Boolean; defaultfalse
):multiSelect
(Boolean; defaultfalse
):disableCheckbox
(Boolean; defaultfalse
):disableSelect
(Boolean; defaultfalse
):disableSort
(Boolean; defaultfalse
):disableFilter
(Boolean; defaultfalse
):disableResize
(Boolean; defaultfalse
):onSelect
(Function):onDeselect
(Function):onClick
(Function):onDblClick
(Function):onRender
(Function):onRendered
(Function):postProcessOfRow
(Function):
col
id
(String):id
attribute ofth
className
(String):attribute
(Object):style
(Object): styling ofth
(using flagrate.Element.setStyle)key
(String; required):label
(String; default""
):icon
(String):align
(String):width
(Number):disableSort
(Boolean; defaultfalse
):disableResize
(Boolean; defaultfalse
):
row
id
(String):id
attribute oftr
className
(String):attribute
(Object):style
(Object): styling oftr
(using flagrate.Element.setStyle)cell
(Object|String; default{}
): of cell object. or String for text.menuItems
(Array): of Menu items.isSelected
(Boolean):onSelect
(Function):onDeselect
(Function):onClick
(Function):onDblClick
(Function):postProcess
(Function):
cell
id
(String):id
attribute oftd
className
(String):attribute
(Object):style
(Object): styling oftd
(using flagrate.Element.setStyle)text
(String):html
(String):element
(Element):icon
(String):sortAlt
(Number|String):onClick
(Function):onDblClick
(Function):postProcess
(Function):