remove()
deletes the specified item from the component
remove(id: (string | number) | (string | number)[]): void;
Parameters:
id: string | string[]
- the ids of the items that should be deleted
Example
component.data.remove("2");
//or
component.data.remove(["2", "4"]);
Related sample: Data. Remove