grid.table
Hierarchy
coregrid.tableRequires
grid.table.basejqueryFiles
Config options
Sets a column index shown when the Show/Hide Column menu is enabled.
Defaults to: false
Sets the column key shown when converted to a CSV string.
Defaults to: null
Sets the name of a column shown when converting to a CSV string, which must be defined in the same order as the CSV option.
Defaults to: null
Sets the column key to be changed to a number form when converted to a CSV string.
Defaults to: null
Sets the initial row list of a table.
Defaults to: []
Sets the Show/Hide state of an extended row area when doubleclicking on a row/cell.
Defaults to: true
Determines whether to use a modified row area.
Defaults to: false
Defines a DOM event to be used in a UI
Defaults to: {}
Determines whether to use an extended row area.
Defaults to: false
Sets the Show/Hide state of an extended row area when clicking on a row.
Defaults to: true
Sets the name of columns in the order of being displayed on the table screen.
Defaults to: null
Determines whether to use the move function when you fire row draggable event.
Defaults to: false
Determines whether to use the column resizing function.
Defaults to: false
Sets the initial row list of a table (@Deprecated).
Sets the initial row list of a table (@Deprecated).
Determines whether to use a table scroll.
Defaults to: false
Sets the reference height of a body area when using a table scroll.
Defaults to: 200
Determines whether to use the table sort function.
Defaults to: false
Determines whether to use the sort function when you click on a column.
Defaults to: true
Determines whether to use the table sort function.
Defaults to: null
Determines whether to use the table sort function.
Defaults to: "asc"
Defines a template markup to be used in a UI
Defaults to: {}
Methods
Gets the index of a row that is activated in an extended/modified/selected state.
Returns
- Integer
index
Check the parameter type of a UI method and generates an alarm when a wrong value is entered
Parameters
- name : String
Method name
- params : Array
Parameters
Add a row or a child row to at a specified index.
Parameters
- row : RowObject
Sets a callback function that is called after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function that is called before a UI method is run
Parameters
- name : String
Method name
- callback : Function
Returns
- Mixed
Sets a callback function and the delay time before/after a UI method is run
Parameters
- name : String
Method name
- callback : Function
Add a checked class to a row at a specified index.
Parameters
- index : Integer
Gets the number of trows of a table.
Returns
- Integer
count
Removes all events set in a UI obejct and the DOM element
Downloads the data of a table as a CSV file.
Parameters
- name : String
- isTree : Boolean
Generates a custom event. The first parameter is the type of a custom event. A function defined as an option or on method is called
Parameters
- type : String
Event type
- args : Function
Event Arguments
Returns
- Mixed
Hides a child row of a specified index.
Parameters
- index : Integer
Gets the row at the specified index.
Parameters
- index : Integer
Returns
- RowObject
row
Gets all rows of at the specified index including child rows.
Parameters
- index : Integer
Returns
- Array
rows
Gets the column at the specified index.
Parameters
- key : "Integer"/"String"
index or column key
Returns
- ColumnObject
column
Gets the data of a table as a CSV string.
Parameters
- isTree : Boolean
Returns
- String
csv
Gets the data of a table as a CSV string encoded as base64.
Parameters
- isTree : Boolean
Returns
- String
base64
Get a row in which the modified area is currently activated.
Returns
- RowObject
row
Get a row in which the extended area is currently activated.
Returns
- RowObject
row
Hides the column index (or column name).
Parameters
- key : "Integer"/"String"
index or column name
Hides the modified row area of a specified index.
Hides the extended row area of a specified index.
It is possible to determine the index or name of the column to be shown in an array.
Parameters
- key : "Integer"/"String"
index or column name
Adds a row at a specified index.
Parameters
- index : Integer
- row : RowObject
Gets all the rows of a table including child rows.
Returns
- Array
rows
Gets all rows in a check state.
Returns
- Array
rows
Gets the data of all the rows of a table.
Returns
- Array
datas
Moves a row iat a specified index to the target index.
Parameters
- index : Integer
- targetIndex : Integer
Removes a custom event of an applicable type or callback handler
Parameters
- type : String
Event type
A callback function defined as an on method is run when an emit method is called
Parameters
- type : String
Event type
- callback : Function
Shows a child row of a specified index.
Parameters
- index : Integer
Remove a row at a specified index.
Parameters
- index : Integer
Resets the inner scroll and columns of a table.
Sets the scroll based on the height of a table.
Parameters
- height : Integer
Adds a selected class to a row at a specified index and gets an instance of the applicable row.
Parameters
- index : Integer
Returns
- RowObject
row
Dynamically defines the options of a UI
Parameters
- key : String
- value : Mixed
Dynamically defines the template method of a UI
Parameters
- name : String
Template name
- html : String
Template markup
Shows the column index (or column name).
Parameters
- key : "Integer"/"String"
index or column name
Shows the Show/Hide Column menu at specified coordinates.
Parameters
- x : Integer
- y : Integer
Shows the modified row area of a specified index.
Parameters
- index : Integer
Shows the extended row area of a specified index.
Parameters
- index : Integer
Gets the size of all the rows of a table.
Returns
- Integer
size
Moves a row iat a specified index to the target index.
Parameters
- index : Integer
- order : String
"asc" or "desc"
Shows or hides the Show/Hide Column menu.
Parameters
- x : Integer
- y : Integer
Removes a checked class from a row at a specified index.
Parameters
- index : Integer
Removes a selected class from a selected row and gets an instance of the row in question.
Returns
- RowObject
row
Updates the list of rows or modifies the row at a specified index.
Parameters
- rows : Array
It is possible to configure a tree table using an object array with the index and data properties.
Parameters
- rows : Array
Events
Event that occurs when a row is clicked
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when a column is clicked.
Parameters
- e : ColumnObject) column
@param {EventObject
The event object
Event that occurs when hidden column is selected.
Parameters
- e : ColumnObject) column
@param {EventObject
The event object
Event that occurs when the column resizing is activated.
Parameters
- e : ColumnObject) column
@param {EventObject
The event object
Event that occurs when shown column is selected.
Parameters
- e : ColumnObject) column
@param {EventObject
The event object
Event that occurs when a row is double clicked
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when the modification of a row is completed.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when a row is in a modification state.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when the extended row area is enabled.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when the extended row area is disabled.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when a child row is hidden.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when all child rows are hidden.
Event that occurs when a child row is shown.
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when all child rows are shown.
Event that occurs when the scroll of a table is located at the lowermost position.
Parameters
- e : EventObject
The event object
Event that occurs when a row is selected (@Deprecated)
Parameters
- e : RowObject) row
@param {EventObject
The event object
Event that occurs when the table is sorted.
Parameters
- e : ColumnObject) column
@param {EventObject
The event object