-
Notifications
You must be signed in to change notification settings - Fork 4
NestedTree
Eric edited this page Sep 18, 2018
·
6 revisions
OGX.NestedTree is a component to display a tree of information with multi sublevels with collapsible and manipulable nodes.
let config = {
container:_SELECTOR_,
scopes:_ARRAY_, //Defaults to ['public']
openOnDrag:true|false, //Defaults to true - opens the node if it is dragged
data:_OBJECT_
};
let tree = new OGX.NestredTree(config);
tree.setData(_OBJECT_);
tree.getData();
tree.el.on(
OGX.NestedTree.SELECT |
OGX.NestedTree.OPEN |
OGX.NestedTree.CLOSE |
OGX.NestedTree.DRAG_START |
OGX.NestedTree.DRAG_END, function(__event, __data){
});
tree.el.off(
OGX.NestedTree.SELECT |
OGX.NestedTree.OPEN |
OGX.NestedTree.CLOSE |
OGX.NestedTree.DRAG_START |
OGX.NestedTree.DRAG_END
);
tree.destroy();
- Welcome
- Changelog
- Structure
- Configuration
- Getting started
- CLI
- Poly
- Core
- Templating
- Routing
- Controllers
- Components
- Extra Components
- Helpers
- Styling
- Debugging