IdSpace

Separate layer of ids.

If the component has this mixin, all its child elements will store their IDs in a separate namespace (so there is no need to make them absolutely unique). Sub-views will not be accessible by the global $$ operator. Instead, you will need to address them via their parent view:

webix.ui({ id:"myview", isolate:true, rows:[ { id:"sub_view"} ] }); // bad, will not work! // var comp = $$("sub_view");   // good var comp = $$("myview").$$("sub_view");

Since it changes the behavior of the child element, it only makes sense to use the mixin with container elements.

Example

This mixin is used in the top-level layouts of Spreadsheet and Kanban which allows accsessing their inner views by IDs.

$$("spreadsheet").$$("cells"); // accessing the table itself
Methods
innerId returns the inner ID of an item by its public (real) ID
ui allows creating a new UI, the ID of which will be locked in the parent ID space
Other
$$ locates sub-item by id
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.