new Grid(options)
Grid public API
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Properties
|
Methods
-
static applyTheme(presetName, extOptionsopt)
-
Apply theme to all grid instances with the preset options of a given name.
Parameters:
Name Type Attributes Description presetNameString preset theme name. Available values are 'default', 'striped' and 'clean'.
extOptionsObject <optional>
if exist, extend preset options with this object.
Properties
Name Type Attributes Description gridObject <optional>
Styles for the grid (container)
Properties
Name Type Attributes Description backgroundString <optional>
Background color of the grid.
bordernumber <optional>
Border color of the grid
textnumber <optional>
Text color of the grid.
selectionObject <optional>
Styles for a selection layer.
Properties
Name Type Attributes Description backgroundString <optional>
Background color of a selection layer.
borderString <optional>
Border color of a selection layer.
scrollbarObject <optional>
Styles for scrollbars.
Properties
Name Type Attributes Description backgroundString <optional>
Background color of scrollbars.
thumbString <optional>
Color of thumbs in scrollbars.
activeString <optional>
Color of arrows(for IE) or
thumb:hover(for other browsers) in scrollbars.cellObject <optional>
Styles for the table cells.
Properties
Name Type Attributes Description normalObject <optional>
Styles for normal cells.
Properties
Name Type Attributes Description backgroundString <optional>
Background color of normal cells.
borderString <optional>
Border color of normal cells.
textString <optional>
Text color of normal cells.
showVerticalBorderBoolean <optional>
Whether vertical borders of
normal cells are visible.showHorizontalBorderBoolean <optional>
Whether horizontal borders of
normal cells are visible.headObject <optional>
Styles for the head cells.
Properties
Name Type Attributes Description backgroundString <optional>
Background color of head cells.
borderString <optional>
border color of head cells.
textString <optional>
text color of head cells.
showVerticalBorderBoolean <optional>
Whether vertical borders of
head cells are visible.showHorizontalBorderBoolean <optional>
Whether horizontal borders of
head cells are visible.selectedHeadObject <optional>
Styles for selected head cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of selected haed cells.
textString <optional>
text color of selected head cells.
focusedObject <optional>
Styles for a focused cell.
Properties
Name Type Attributes Description backgroundString <optional>
background color of a focused cell.
borderString <optional>
border color of a focused cell.
focusedInactiveObject <optional>
Styles for a inactive focus cell.
Properties
Name Type Attributes Description borderString <optional>
border color of a inactive focus cell.
requiredObject <optional>
Styles for required cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of required cells.
textString <optional>
text color of required cells.
editableObject <optional>
Styles for editable cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of the editable cells.
textString <optional>
text color of the selected editable cells.
disabledObject <optional>
Styles for disabled cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of disabled cells.
textString <optional>
text color of disabled cells.
invalidObject <optional>
Styles for invalid cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of invalid cells.
textString <optional>
text color of invalid cells.
currentRowObject <optional>
Styles for cells in a current row.
Properties
Name Type Attributes Description backgroundString <optional>
background color of cells in a current row.
textString <optional>
text color of cells in a current row.
evenRowObject <optional>
Styles for cells in even rows.
Properties
Name Type Attributes Description backgroundString <optional>
background color of cells in even rows.
textString <optional>
text color of cells in even rows.
dummyObject <optional>
Styles for dummy cells.
Properties
Name Type Attributes Description backgroundString <optional>
background color of dummy cells.
Example
var Grid = tui.Grid; // or require('tui-grid') Grid.applyTheme('striped', { grid: { border: '#aaa', text: '#333' }, cell: { disabled: { text: '#999' } } }); -
static getInstanceById(id) → {tui.Grid}
-
Returns an instance of the grid associated to the id.
Parameters:
Name Type Description idnumber ID of the target grid
Returns:
tui.Grid -- Grid instance
var Grid = tui.Grid; // or require('tui-grid')
Grid.getInstanceById(id);
- Grid instance
-
static setLanguage(localeCode, dataopt)
-
Set language
Parameters:
Name Type Attributes Description localeCodestring Code to set locale messages and
this is the language or language-region combination (ex: en-US)dataobject <optional>
Messages using in Grid
Example
var Grid = tui.Grid; // or require('tui-grid') Grid.setLanguage('en'); // default and set English Grid.setLanguage('ko'); // set Korean Grid.setLanguage('en-US', { // set new language display: { noData: 'No data.', loadingData: 'Loading data.', resizeHandleGuide: 'You can change the width of the column by mouse drag, ' + 'and initialize the width by double-clicking.' }, net: { confirmCreate: 'Are you sure you want to create {{count}} data?', confirmUpdate: 'Are you sure you want to update {{count}} data?', confirmDelete: 'Are you sure you want to delete {{count}} data?', confirmModify: 'Are you sure you want to modify {{count}} data?', noDataToCreate: 'No data to create.', noDataToUpdate: 'No data to update.', noDataToDelete: 'No data to delete.', noDataToModify: 'No data to modify.', failResponse: 'An error occurred while requesting data.\nPlease try again.' } }); -
activateFocus()
-
Makes view ready to get keyboard input.
-
addCellClassName(rowKey, columnName, className)
-
Adds the specified css class to cell element identified by the rowKey and className
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
classNamestring The css class name to add
-
addRowClassName(rowKey, className)
-
Adds the specified css class to all cell elements in the row identified by the rowKey
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
classNamestring The css class name to add
-
appendRow(rowopt, optionsopt)
-
Insert the new row with specified data to the end of table.
Parameters:
Name Type Attributes Description rowobject <optional>
The data for the new row
optionsobject <optional>
Options
Properties
Name Type Attributes Description atnumber <optional>
The index at which new row will be inserted
extendPrevRowSpanboolean <optional>
If set to true and the previous row at target index
has a rowspan data, the new row will extend the existing rowspan data.focusboolean <optional>
If set to true, move focus to the new row after appending
-
blur()
-
Removes focus from the focused cell.
-
check(rowKey)
-
Checks the row identified by the specified rowKey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
-
checkAll()
-
Checks all rows.
-
clear()
-
Removes all rows.
-
copyToClipboard()
-
Copy to clipboard
-
destroy()
-
Destroys the instance.
-
disable()
-
Disables all rows.
-
disableCheck(rowKey)
-
Disables the row identified by the spcified rowKey to not be abled to check.
Parameters:
Name Type Description rowKeynumber | string The unique keyof the row.
-
disableRow(rowKey)
-
Disables the row identified by the rowkey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the target row
-
enable()
-
Enables all rows.
-
enableCheck(rowKey)
-
Enables the row identified by the rowKey to be able to check.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
-
enableRow(rowKey)
-
Enables the row identified by the rowKey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the target row
-
findRows(conditions) → {array}
-
Find rows by conditions
Parameters:
Name Type Description conditionsobject K-V object to find rows (K: column name, V: column value)
Returns:
array -Row list
-
focus(rowKey, columnName, isScrollableopt)
-
Sets focus on the cell identified by the specified rowKey and columnName.
Parameters:
Name Type Attributes Default Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
isScrollableboolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusAt(rowIndex, columnIndex, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column.
Parameters:
Name Type Attributes Default Description rowIndexnumber | string The index of the row
columnIndexstring The index of the column
isScrollableboolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusIn(rowKey, columnName, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column and starts to edit.
Parameters:
Name Type Attributes Default Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
isScrollableboolean <optional>
false If set to true, the view will scroll to the cell element.
-
focusInAt(rowIndex, columnIndex, isScrollableopt)
-
Sets focus on the cell at the specified index of row and column and starts to edit.
Parameters:
Name Type Attributes Default Description rowIndexnumber | string The index of the row
columnIndexstring The index of the column
isScrollableboolean <optional>
false If set to true, the view will scroll to the cell element.
-
getAddOn(name) → {instance}
-
Returns the instance of specified AddOn.
Parameters:
Name Type Description namestring The name of the AddOn
Returns:
instance -addOn - The instance of the AddOn
-
getCheckedRowKeys(isJsonStringopt) → {Array|string}
-
Returns a list of the rowKey of checked rows.
Parameters:
Name Type Attributes Default Description isJsonStringBoolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Array | string -- A list of the rowKey. (or JSON string of the list)
-
getCheckedRows(useJsonopt) → {Array|string}
-
Returns a list of the checked rows.
Parameters:
Name Type Attributes Default Description useJsonBoolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Array | string -- A list of the checked rows. (or JSON string of the list)
-
getColumns() → {Array}
-
Returns a list of the column model.
Returns:
Array -- A list of the column model.
-
getColumnValues(columnName, isJsonStringopt) → {Array|string}
-
Returns a list of all values in the specified column.
Parameters:
Name Type Attributes Default Description columnNamestring The name of the column
isJsonStringboolean <optional>
false It set to true, return value will be converted to JSON string.
Returns:
Array | string -- A List of all values in the specified column. (or JSON string of the list)
-
getElement(rowKey, columnName) → {jQuery}
-
Returns the jquery object of the cell identified by the rowKey and columnName.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
Returns:
jQuery -- The jquery object of the cell element
-
getFocusedCell() → {number|string|string}
-
Returns data of currently focused cell
Returns:
-
number
-
rowKey - The unique key of the row
-
string
-
columnName - The name of the column
-
string
-
value - The value of the cell
-
number
-
-
getIndexOfColumn(columnName) → {number}
-
Returns the index of the column indentified by the column name.
Parameters:
Name Type Description columnNamestring The unique key of the column
Returns:
number -- The index of the column
-
getIndexOfRow(rowKey) → {number}
-
Returns the index of the row indentified by the rowKey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
Returns:
number -- The index of the row
-
getModifiedRows(optionsopt) → {Object}
-
Returns the object that contains the lists of changed data compared to the original data.
The object has properties 'createdRows', 'updatedRows', 'deletedRows'.Parameters:
Name Type Attributes Description optionsObject <optional>
Options
Properties
Name Type Attributes Default Description checkedOnlyboolean <optional>
false If set to true, only checked rows will be considered.
withRawDataboolean <optional>
false If set to true, the data will contains
the row data for internal use.rowKeyOnlyboolean <optional>
false If set to true, only keys of the changed
rows will be returned.ignoredColumnsArray <optional>
A list of column name to be excluded.
Returns:
Object -- Object that contains the result list.
-
getPagination() → {tui.component.Pagination}
-
Returns an instance of tui.component.Pagination.
Returns:
tui.component.Pagination -
getRow(rowKey, isJsonStringopt) → {Object|string}
-
Returns the object that contains all values in the specified row.
Parameters:
Name Type Attributes Default Description rowKeynumber | string The unique key of the target row
isJsonStringboolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Object | string -- The object that contains all values in the row. (or JSON string of the object)
-
getRowAt(index, isJsonStringopt) → {Object|string}
-
Returns the object that contains all values in the row at specified index.
Parameters:
Name Type Attributes Default Description indexnumber The index of the row
isJsonStringBoolean <optional>
false If set to true, return value will be converted to JSON string.
Returns:
Object | string -- The object that contains all values in the row. (or JSON string of the object)
-
getRowCount() → {number}
-
Returns the total number of the rows.
Returns:
number -- The total number of the rows
-
getRows() → {Array}
-
Returns a list of all rows.
Returns:
Array -- A list of all rows
-
getRowSpanData(rowKey, columnName) → {Object}
-
Returns the rowspan data of the cell identified by the rowKey and columnName.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
Returns:
Object -- Row span data
-
getSortState() → {Object}
-
Get state of the sorted column in rows
Returns:
Object -Sorted column's state
-
getValue(rowKey, columnName, isOriginalopt) → {number|string}
-
Returns the value of the cell identified by the rowKey and columnName.
Parameters:
Name Type Attributes Description rowKeynumber | string The unique key of the target row.
columnNamestring The name of the column
isOriginalboolean <optional>
It set to true, the original value will be return.
Returns:
number | string -- The value of the cell
-
hideColumn(…arguments)
-
Hide columns
Parameters:
Name Type Attributes Description argumentsstring <repeatable>
Column names to hide
-
isModified() → {boolean}
-
Returns true if there are at least one row modified.
Returns:
boolean -- True if there are at least one row modified.
-
prependRow(rowopt, optionsopt)
-
Insert the new row with specified data to the beginning of table.
Parameters:
Name Type Attributes Description rowobject <optional>
The data for the new row
optionsobject <optional>
Options
Properties
Name Type Attributes Description focusboolean <optional>
If set to true, move focus to the new row after appending
-
refreshLayout()
-
Refresh the layout view. Use this method when the view was rendered while hidden.
-
removeCellClassName(rowKey, columnName, className)
-
Removes the specified css class from the cell element indentified by the rowKey and columnName.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
classNamestring The css class name to be removed
-
removeCheckedRows(showConfirm) → {boolean}
-
Removes all checked rows.
Parameters:
Name Type Description showConfirmboolean If set to true, confirm message will be shown before remove.
Returns:
boolean -- True if there's at least one row removed.
-
removeRow(rowKey, optionsopt)
-
Removes the row identified by the specified rowKey.
Parameters:
Name Type Attributes Description rowKeynumber | string The unique key of the row
optionsboolean | object <optional>
Options. If the type is boolean, this value is equivalent to
options.removeOriginalData.Properties
Name Type Attributes Description removeOriginalDataboolean <optional>
If set to true, the original data will be removed.
keepRowSpanDataboolean <optional>
If set to true, the value of the merged cells will not be
removed although the target is first cell of them. -
removeRowClassName(rowKey, className)
-
Removes the specified css class from all cell elements in the row identified by the rowKey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
classNamestring The css class name to be removed
-
resetColumnWidths()
-
Reset the width of each column by using initial setting of column models.
-
resetData(data)
-
Replace all rows with the specified list. This will not change the original data.
Parameters:
Name Type Description dataArray A list of new rows
-
restore()
-
Restores the data to the original data.
(Original data is set bysetData -
selection(range)
-
Select cells or rows by range
Parameters:
Name Type Description rangeobject Selection range
Properties
Name Type Attributes Description startarray <optional>
Index info of start selection (ex: [rowIndex, columnIndex])
endarray <optional>
Index info of end selection (ex: [rowIndex, columnIndex])
-
setBodyHeight(value)
-
Sets the height of body-area.
Parameters:
Name Type Description valuenumber The number of pixel
-
setColumns(columns)
-
Sets the list of column model.
Parameters:
Name Type Description columnsArray A new list of column model
-
setColumnValues(columnName, columnValue, isCheckCellStateopt)
-
Sets the all values in the specified column.
Parameters:
Name Type Attributes Default Description columnNamestring The name of the column
columnValuenumber | string The value to be set
isCheckCellStateBoolean <optional>
true If set to true, only editable and not disabled cells will be affected.
-
setData(data, callback)
-
Replace all rows with the specified list. This will change the original data.
Parameters:
Name Type Description dataArray A list of new rows
callbackfunction The function that will be called when done.
-
setFooterColumnContent(columnName, contents)
-
Sets the HTML string of given column summary.
Parameters:
Name Type Description columnNamestring column name
contentsstring HTML string
- Deprecated:
- since version 2.5.0 and is replaced by "setSummaryColumnContent" API
-
setFrozenColumnCount(count)
-
Sets the count of frozen columns.
Parameters:
Name Type Description countnumber The count of columns to be frozen
-
setHeight(height)
-
Set the height of the dimension.
Parameters:
Name Type Description heightnumber The height of the dimension
-
setSummaryColumnContent(columnName, contents)
-
Sets the HTML string of given column summary.
Parameters:
Name Type Description columnNamestring column name
contentsstring HTML string
-
setValue(rowKey, columnName, columnValue)
-
Sets the value of the cell identified by the specified rowKey and columnName.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
columnNamestring The name of the column
columnValuenumber | string The value to be set
-
setWidth(width)
-
Set the width of the dimension.
Parameters:
Name Type Description widthnumber The width of the dimension
-
showColumn(…arguments)
-
Show columns
Parameters:
Name Type Attributes Description argumentsstring <repeatable>
Column names to show
-
sort(columnName, ascendingopt)
-
Sorts all rows by the specified column.
Parameters:
Name Type Attributes Description columnNamestring The name of the column to be used to compare the rows
ascendingboolean <optional>
Whether the sort order is ascending.
If not specified, use the negative value of the current order. -
uncheck(rowKey)
-
Unchecks the row identified by the specified rowKey.
Parameters:
Name Type Description rowKeynumber | string The unique key of the row
-
uncheckAll()
-
Unchecks all rows.
-
unSort()
-
Unsorts all rows. (Sorts by rowKey).
-
use(name, options) → {tui.Grid}
-
Create an specified AddOn and use it on this instance.
Parameters:
Name Type Description namestring The name of the AddOn to use.
optionsobject The option objects for configuring the AddON.
Returns:
tui.Grid -- This instance.
-
validate() → {Array.<Object>}
-
Validates all data and returns the result.
Return value is an array which contains only rows which have invalid cell data.Returns:
Array.<Object> -An array of error object
Example
// return value example [ { rowKey: 1, errors: [ { columnName: 'c1', errorCode: 'REQUIRED' }, { columnName: 'c2', errorCode: 'REQUIRED' } ] }, { rowKey: 3, errors: [ { columnName: 'c2', errorCode: 'REQUIRED' } ] } ]
Events
-
beforeRequest
-
Occurs before the http request is sent
Type:
Properties:
Name Type Description instanceGrid Current grid instance
-
check
-
Occurs when a checkbox in row header is checked
Type:
Properties:
Name Type Description rowKeynumber rowKey of the checked row
instanceGrid Current grid instance
-
click
-
Occurs when a mouse button is clicked on the Grid.
The properties of the event object include the native event object.Type:
Properties:
Name Type Description nativeEventjQueryEvent Event object
targetTypestring Type of event target
rowKeynumber rowKey of the target cell
columnNamestring columnName of the target cell
instanceGrid Current grid instance
-
dblclick
-
Occurs when a mouse button is double clicked on the Grid.
The properties of the event object include the native event object.Type:
Properties:
Name Type Description nativeEventjQueryEvent Event object
targetTypestring Type of event target
rowKeynumber rowKey of the target cell
columnNamestring columnName of the target cell
instanceGrid Current grid instance
-
deleteRange
-
Occurs when cells are deleted by 'del' key
Type:
Properties:
Name Type Description columnNamesArray columName list of deleted cell
rowKeysArray rowKey list of deleted cell
instanceGrid Current grid instance
-
errorResponse
-
Occurs after the response event, if the response is Error
Type:
Properties:
Name Type Description httpStatusnumber HTTP status
requestTypestring Request type
requestParameterstring Request parameters
instanceGrid Current grid instance
-
failResponse
-
Occurs after the response event, if the result is false
Type:
Properties:
Name Type Description httpStatusnumber HTTP status
requestTypestring Request type
requestParameterstring Request parameter
responseDataObject response data
instanceGrid Current grid instance
-
focusChange
-
Occurs when focused cell is about to change
Type:
Properties:
Name Type Description rowKeynumber rowKey of the target cell
columnNamenumber columnName of the target cell
prevRowKeynumber rowKey of the currently focused cell
prevColumnNamenumber columnName of the currently focused cell
instanceGrid Current grid instance
-
mousedown
-
Occurs when a mouse button is downed on the Grid.
The event object has all properties copied from the native MouseEvent.Type:
Properties:
Name Type Description nativeEventjQueryEvent Event object
targetTypestring Type of event target
rowKeynumber rowKey of the target cell
columnNamestring columnName of the target cell
instanceGrid Current grid instance
-
mouseout
-
Occurs when a mouse pointer is moved off from the Grid.
The event object has all properties copied from the native MouseEvent.Type:
Properties:
Name Type Description nativeEventjQueryEvent Event object
targetTypestring Type of event target
rowKeynumber rowKey of the target cell
columnNamestring columnName of the target cell
instanceGrid Current grid instance
-
mouseover
-
Occurs when a mouse pointer is moved onto the Grid.
The properties of the event object include the native MouseEvent object.Type:
Properties:
Name Type Description nativeEventjQueryEvent Event object
targetTypestring Type of event target
rowKeynumber rowKey of the target cell
columnNamestring columnName of the target cell
instanceGrid Current grid instance
-
reponse
-
Occurs when the response is received from the server
Type:
Properties:
Name Type Description httpStatusnumber HTTP status
requestTypestring Request type
requestParameterstring Request parameters
responseDataObject response data
instanceGrid Current grid instance
-
selection
-
Occurs when selecting cells
Type:
Properties:
Name Type Description rangeObject Range of selection
Properties
Name Type Description startArray Info of start cell (ex: [rowKey, columName])
endArray Info of end cell (ex: [rowKey, columnName])
instanceGrid Current grid instance
-
successReponse
-
Occurs after the response event, if the result is true
Type:
Properties:
Name Type Description httpStatusnumber HTTP status
requestTypestring Request type
requestParameterstring Request parameter
responseDataObject response data
instanceGrid Current grid instance
-
uncheck
-
Occurs when a checkbox in row header is unchecked
Type:
Properties:
Name Type Description rowKeynumber rowKey of the unchecked row
instanceGrid Current grid instance