changeId()
changes the id of an element of a data collection
changeId(id: string | number, newId?: string | number, silent?: boolean): void;
Parameters:
id: string | number- the old id of an itemnewId: string | number- the new id; auto-generated if not setsilent?: boolean- optional, if set to true, the method will be called without triggering events; otherwise, false
Example
component.data.changeId("1", "22");
Change log:
added in v6.4