Skip to content

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 ParameterDefault type

T

any

Parameters ​

ParameterTypeDescription

selector

string

Selector of the <ol> given to initEditableList.

readItem

(row) => T

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 }));

Version v2.5.0 - Built on 2026-11-20