-
Notifications
You must be signed in to change notification settings - Fork 4
Tree
Eric edited this page Aug 31, 2018
·
55 revisions
OGX.Tree is a component to display and edit trees such as, but not limited to, a folder and file structure. It supports custom icons and separated operating modes, meaning any type of item can act as a folder and have children. In editable mode, tree items are drag-n-drop-able into one another.
OGX.Tree requires OGX.Templater.
let tree = new OGX.Tree({
container:_SELECTOR_, //HTML element containing the tree
editable:_BOOLEAN_, //Editable (drag-n-drop)
reorder:_BOOLEAN_, //Sort by label once a modification has occured
toggle:_BOOLEAN_, //Selection mode, if enabled, items can be unselected once selected
icon_path:_STRING_, //The path to your image folder where icons are stored,
types:_ARRAY_, //Array of icon types, see types subsection,
tree:_OBJECT_ //Optional, The actual tree data/structure
});
- Welcome
- Changelog
- Structure
- Configuration
- Getting started
- CLI
- Poly
- Core
- Templating
- Routing
- Controllers
- Components
- Extra Components
- Helpers
- Styling
- Debugging