Constructor
new PushButtonTableCell(caption, onClickopt, caption, styleopt, backgroundColoropt, backgroundActiveColoropt, foregroundColoropt, iconopt, …args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
caption |
String | the button caption |
|
onClick |
function |
<optional> |
function to be executed when the button is pushed (see
|
caption |
String | button caption |
|
style |
String |
<optional> |
button style:
|
backgroundColor |
String |
<optional> |
custom background color (ignored unless |
backgroundActiveColor |
String |
<optional> |
custom background active color (ignored unless |
foregroundColor |
String |
<optional> |
custom foreground color (ignored unless |
icon |
qui.icons.Icon |
<optional> |
an optional button icon |
args |
* |
<repeatable> |
parent class parameters |
Extends
Methods
getRow() → {qui.tables.TableRow}
Return the owning row.
- Overrides:
- Source:
Returns:
- Type
- qui.tables.TableRow
getValue() → {*}
Return the current value.
- Overrides:
- Source:
Returns:
- Type
- *
hide()
Hide the cell.
- Overrides:
- Source:
isSelected()
Tell if cell is selected or not.
- Overrides:
- Source:
(abstract) makeContent() → {jQuery}
Implement this method to create the actual table cell content.
- Overrides:
- Source:
Returns:
- Type
- jQuery
setBackgroundActiveColor(color)
Update background active color.
Parameters:
Name | Type | Description |
---|---|---|
color |
String |
setBackgroundColor(color)
Update background color.
Parameters:
Name | Type | Description |
---|---|---|
color |
String |
setCaption(caption)
Update button caption.
Parameters:
Name | Type | Description |
---|---|---|
caption |
String |
setEnabled(enabled)
Set button enabled state.
Parameters:
Name | Type | Description |
---|---|---|
enabled |
Boolean |
setForegroundColor(color)
Update foreground color.
Parameters:
Name | Type | Description |
---|---|---|
color |
String |
setIcon(iconnullable)
Update button icon.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
icon |
qui.icons.Icon |
<nullable> |
setRow(row)
Set the owning row.
Parameters:
Name | Type | Description |
---|---|---|
row |
qui.tables.TableRow |
- Overrides:
- Source:
setSelected(selected)
Select or deselect cell.
Parameters:
Name | Type | Description |
---|---|---|
selected |
Boolean |
- Overrides:
- Source:
setSelectMode(selectMode)
Set select mode. This is internally called by owning qui.tables.TableRow
.
Parameters:
Name | Type | Description |
---|---|---|
selectMode |
String | one of: |
- Overrides:
- Source:
setStyle(style)
Update button style.
Parameters:
Name | Type | Description |
---|---|---|
style |
String |
setValue(value)
Set the current value.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
- Overrides:
- Source:
show()
Show the cell.
- Overrides:
- Source:
(abstract) showValue(value)
Implement this method to display the value in the cell content.
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
- Overrides:
- Source: