Editor / DOM Helper / getEditableListItems
Function: getEditableListItems()
ts
function getEditableListItems<T>(selector, readItem): T[];Reads the rows of an editableList, in their displayed order.
Type Parameters
| Type Parameter | Default type |
|---|---|
|
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| Selector of the |
| ( | Turns one row into an item. |
Returns
T[]
The items, one per row.
Example
typescript
this.rules = getEditableListItems<Rule>('$rules-container', (row) => ({ name: row.find('input').val() as string }));