assets-navigator/asset-selector/asset-selector-base.ts
Properties |
Methods |
constructor(groupNodeService: GroupNodeService, inventory: InventoryService, assetSelectorService: AssetSelectorService)
|
||||||||||||
Parameters :
|
config |
Type : AssetSelectorOptions
|
Default value : {}
|
Config object containing all options for the asset selector. |
isLoading |
Type : boolean
|
Default value : false
|
The loading state of the current node. |
onSelected |
Default value : new EventEmitter<AssetSelectionChangeEvent>()
|
Emit the selected asset or assets. |
selected |
Type : Array<Partial<IManagedObject>> | IIdentified[] | IIdentified
|
An array of predefined nodes. |
createDefaultRootNode |
createDefaultRootNode()
|
Returns :
any
|
Async createManagedObjectRootNode | ||||||
createManagedObjectRootNode(asset: IIdentified)
|
||||||
Parameters :
Returns :
unknown
|
deselect | ||||||||
deselect(selectedMo: IManagedObject)
|
||||||||
Removes a managed object from the selected array and emits the change.
Parameters :
Returns :
void
|
deselectAll | ||||||||
deselectAll(selectedMo?: IManagedObject)
|
||||||||
Deselects all expect the given one.
Parameters :
Returns :
void
|
emitChange | ||||||||||||
emitChange(selected: IIdentified | IIdentified[], item: IManagedObject, isSelected: boolean)
|
||||||||||||
Parameters :
Returns :
void
|
getIndexOfSelected | ||||||||||||
getIndexOfSelected(selected: Array
|
||||||||||||
Returns the index of the currently selected item.
Parameters :
Returns :
any
An index, or -1 if not found. |
select | ||||||||
select(selectedMo: IManagedObject)
|
||||||||
Adds an managed object to the selected array and emits the change.
Parameters :
Returns :
void
|