Namespace: Ui
Меньше 1 минуты
Namespace: Ui
Functions and objects to append viewer UI.
Interfaces
Type Aliases
SelectedMetaTreeCallback
Ƭ SelectedMetaTreeCallback: (event
: { elNums
: number
[] }) => void
Callback function for Selected MetaTree event.
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Object |
event.elNums | number [] |
Returns
void
Functions
appendMetaTree
▸ appendMetaTree(container
, metaManager
, events
): MetaTreeContext
Appends MetaTree UI component inside DOM container.
Parameters
Name | Type | Description |
---|---|---|
container | string | HTMLElement | Container element or element id. |
metaManager | MetaManager | MetaManager instance. |
events | Object | Object for setting event callbacks for meta tree UI component. |
events.selected | SelectedMetaTreeCallback | - |
Returns
- MetaTreeContext instance.
appendPropsTree
▸ appendPropsTree(container
, metaManager
): PropsTreeContext
Appends PropsTree UI component inside DOM container.
Parameters
Name | Type | Description |
---|---|---|
container | string | HTMLElement | Container element or element id. |
metaManager | MetaManager | MetaManager instance. |
Returns
- PropsTreeContext instance.
setI18next
▸ setI18next(i18n?
): void
Init multilingual locales system and set i18n object.
Parameters
Name | Type | Description |
---|---|---|
i18n? | i18n | Exist i18next object. If no object is presented, the function will create its own object. |
Returns
void