changeId()
changes the id of an element of a data collection
changeId(id: Id, newId?: Id, silent?: boolean): void;
Parameters:
id: string
- the old id of an itemnewId: string
- optional, the new id; auto-generated if not setsilent: boolean
- true, to prevent changing the id; otherwise, false
Example
component.data.changeId("1", "22");
Change log:
added in v6.4