Examples
List of modules
-
Ace Editor
Affix
Alert
Audio
Button
Carousel
Char Counter
Color Picker
Data Table
Datepicker
Diagram Builder
Dropdown
Form Builder
Form Validator
I/O
Image Cropper
Image Viewer
Modal
Node
Pagination
Popover
Progress Bar
Rating
Scheduler
Scrollspy
Sortable Layout
Sortable List
Tabview
Timepicker
Toggler
Toolbar
Tooltip
TreeView
Video
Viewport
TreeView
<div id="myTreeView"></div>
YUI().use(
'aui-tree-view',
function(Y) {
// Create an array object for the tree root and child nodes
var children = [
{
children: [
{
label: 'File X'
},
{
label: 'File Y'
},
{
label: 'File Z'
}
],
expanded: true,
label: 'Root'
}
];
// Create a TreeView Component
new Y.TreeView(
{
boundingBox: '#myTreeView',
children: children
}
).render();
}
);