ArrayModel wraps a JavaScript array for use in .slint views. The underlying array can be modified with the [[ArrayModel.push]] and [[ArrayModel.remove]] methods.
.slint
Creates a new ArrayModel.
Protected
Notifies the view that the complete data must be reload.
Notifies the view that multiple rows are added to the model.
index of the first added row.
the number of added items.
Notifies the view that the data of the current row is changed.
index of the changed row.
Notifies the view that multiple rows are removed to the model.
index of the first removed row.
the number of removed items.
Pushes new values to the array that's backing the model and notifies the run-time about the added rows.
Rest
Removes the specified number of element from the array that's backing the model, starting at the specified index.
Implementations of this function must return the current number of rows.
Implementations of this function must return the data at the specified row.
Implementations of this function must store the provided data parameter in the model at the specified row.
ArrayModel wraps a JavaScript array for use in
.slint
views. The underlying array can be modified with the [[ArrayModel.push]] and [[ArrayModel.remove]] methods.