Constructor
new TableRow(cells, initialValuesopt, …args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cells |
Array.<qui.tables.TableCell> | table cells |
|
initialValues |
Array |
<optional> |
optional initial values |
args |
* |
<repeatable> |
parent class parameters |
- Source:
Extends
Methods
getCellIndex(cell) → {Number}
Return the index of the given cell. If the field does not belong to this row, -1
is returned.
Parameters:
Name | Type | Description |
---|---|---|
cell |
qui.tables.TableCell | the cell |
- Source:
Returns:
- Type
- Number
getCells() → {Array.<qui.tables.TableCell>}
Return row cells.
- Source:
Returns:
- Type
- Array.<qui.tables.TableCell>
getData() → {*}
Return the item user data.
- Overrides:
- Source:
Returns:
- Type
- *
getList() → {qui.lists.List}
Return the owning list.
- Overrides:
- Source:
Returns:
- Type
- qui.lists.List
getTable() → {qui.tables.Table}
Return the owning table.
- Source:
Returns:
- Type
- qui.tables.Table
getValues() → {Array}
Return the current values of the cells.
- Source:
Returns:
- Type
- Array
hide()
Hide the field.
- Overrides:
- Source:
isHidden() → {Boolean}
Tell if the item is hidden.
- Overrides:
- Source:
Returns:
- Type
- Boolean
isMatch(filter) → {Boolean}
Tell if item matches a search filter. By default, uses qui.utils.string.intelliSearch
on textual content
of the HTML element.
Parameters:
Name | Type | Description |
---|---|---|
filter |
String | search filter |
- Overrides:
- Source:
Returns:
- Type
- Boolean
isSelected()
Tell if item is selected or not.
- Overrides:
- Source:
(abstract) makeContent() → {jQuery}
Implement this method to create the actual list item content.
- Overrides:
- Source:
Returns:
- Type
- jQuery
prepareCell(cell)
Prepare cell to be part of this row.
Parameters:
Name | Type | Description |
---|---|---|
cell |
qui.tables.TableCell |
- Source:
setData(data)
Set the item user data.
Parameters:
Name | Type | Description |
---|---|---|
data |
* |
- Overrides:
- Source:
setList(list)
Set the owning list.
Parameters:
Name | Type | Description |
---|---|---|
list |
qui.lists.List |
- Overrides:
- Source:
setSelected(selected)
Select or deselect item.
Parameters:
Name | Type | Description |
---|---|---|
selected |
Boolean |
- Overrides:
- Source:
setSelectMode(selectMode)
Set select mode. This is internally called by owning qui.lists.List
.
Parameters:
Name | Type | Description |
---|---|---|
selectMode |
String | one of: |
- Overrides:
- Source:
setValues(values, indexopt)
Set row values. If more values than needed are supplied, extra values are ignored. If less values are supplied, extra cells are left unchanged.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
values |
Array | |||
index |
Number |
<optional> |
0 | optional start index (defaults to |
- Source:
show()
Show the item.
- Overrides:
- Source: