Extends
Constructor
new mw.widgets.RowWidget([config])
#
Create an instance of mw.widgets.RowWidget
.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
optional |
Configuration options Properties:
|
- Mixes in:
- Source:
Methods
clear()
#
Clear the field values.
getLabel() → {string}
#
Get the label displayed on the row. If no custom label is set, the row index is used instead.
Returns:
The row label
- Type
- string
insertCell(data, index, key)
#
onClear()
#
Handle clear requests.
onInsertCell(data, index)
#
onLabelUpdate()
#
Update model label changes.
onRemoveCell(index)
#
onValueChange(index, value)
#
Handle model value changes.
Parameters:
Fires:
removeCell(index)
#
Removes a column at a specified index.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index to removeColumn |
setDisabled()
#
setLabel(label)
#
Set the label to be displayed on the widget.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | The new label |
Fires:
setValue(index, value)
#
Set the value of a particular cell.
Parameters:
Events
deleteButtonClick()
#
Fired when the delete button for the row is pressed.