This commit is contained in:
Joao Moreno 2018-08-16 13:43:32 +02:00
parent de6116b3ea
commit e2b79d3c9d

View file

@ -364,6 +364,10 @@ export interface IDataSource {
/** /**
* Returns the unique identifier of the given element. * Returns the unique identifier of the given element.
* No more than one element may use a given identifier. * No more than one element may use a given identifier.
*
* You should not attempt to "move" an element to a different
* parent by keeping its ID. The idea here is to have tree location
* related IDs (eg. full file path, in the Explorer example).
*/ */
getId(tree: ITree, element: any): string; getId(tree: ITree, element: any): string;