You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a way to insert a record to the data store, when a user adds a new row to the table, if the table is long, it's nice to have the new record at the top.
/**
* Inserts a single record to the data store, updating both the original and filtered lists.
*
* @param record The record to be inserted.
*/
public void insertRecord(T record) {
original.add(0, record);
List<T> newData = new ArrayList<>(original);
setData(newData);
}
or as an alternative: public void addRecord(int index, T record)
The text was updated successfully, but these errors were encountered:
vegegoku
changed the title
LocalListDataStore allow insert of record
Add the ability to insert/remove records from LocalListDataStore by index
Jan 14, 2024
Please provide a way to insert a record to the data store, when a user adds a new row to the table, if the table is long, it's nice to have the new record at the top.
or as an alternative:
public void addRecord(int index, T record)
The text was updated successfully, but these errors were encountered: