Themes
Jennifer
Dark
Leave a comment
Common Styles
Typography
Forms
Icons
Navigation Bar
Panel
Bar Graph
Grid
Accordion
Default accordion
Close accordion
Multi Panel
Auto Complete
Default auto complete
Update word list
Button
Buttons Style
Radio. Get selected value
Radio. Set to the index
Radio. Set to the value
Check. Set to the index
Check. Set to the value
Color Picker
Default colorpicker
Combo Box
Get selected text
Set to the index
Custom SelectBox
Simple Select Box
Position of Select Box
Multi Selection for Select Box
Date Picker
Date Picker Style
Calendar Style
Daily date picker
Set the date range
Monthly date picker
Yearly date picker
Daily calendar
Dropdown
Vertical Menu Style
Dropdown Menu Style
Show & Hide dropdown
Auto Close prevention
Control by keyboard
Update list
Layout
Split Screens
Modal
Global modal
Inside modal
Notification
Notify Style
Notification to the top
Notification to the bottom
Paging
Paging Style
Default paging
Use the paging on the table
Progress Bar
Progress Bar Style
Horizontal progress bar
Vertical progress bar
Property View
Simple Property View
Complex Property View
Property View in Window
Property View in Panel
Property View with Accordian
Slider
Slider Style
Single slider
Double slider
Splitter
Splitter for Vertical
Splitter for Horizontal
Border Layout (with minSize)
Switch
Switch Style
Default switch
Tab
Tabs Style
Top tabs
Bottom tabs
Tab manipulation
Tab dragging
Use dropdown menu
Table
Tables Style
Default table
Cell merge in row
Use the extended area
Scroll to rows
Select to multiple rows
Mouse right-click event
Sorting rows
Editing rows
Right-click editing rows
Remove row
Append rows
Insert rows
Hide & Show columns
Export to CSV file
Import to CSV file
Append/Insert tree rows
Move/Remove/Modify tree rows
Update tree rows
Changing the row position via drag events
Tooltip
Tooltip Style
Popover Style
Default tooltip
With popover style
Tree
Tree Menu Style
Append nodes
Move/Remove/Update node
Tree dragging
Window
Window Style
Message Box Style
Move & Resizing window
Modal window
Using a different style
X-Table
Data scrolling
Data paging
Data paging & scrolling
Data filters
Horizontal scroll bar
Virtual scrolling
Virtual scrolling (Append Tree)
Virtual scrolling (Update Tree)
Code
HTML
jui.ready([ "ui.tree" ], function(tree) { tree_1 = tree("#tree_1 .tree", { root: { title: "C:\\" }, event: { select: function(node) { this.select(node.index); alert("index(" + node.index + "), title(" + node.data.title + ")"); } }, tpl: { node: $("#tpl_node").html() } }); for(var i = 0; i < tree_1.length; i++) { tree_1[i].append({ title: "Windows" }); tree_1[i].append({ title: "Download" }); tree_1[i].append({ title: "Program Files" }); tree_1[i].append({ title: "Apache" }); tree_1[i].append("0", { title: "run.exe" }); tree_1[i].append("0", { title: "setting.conf" }); tree_1[i].append("1", { title: "jui.torrrent" }); tree_1[i].insert("2.0", { title: "Riot Games" }); tree_1[i].insert("2.0.0", { title: "lol.exe" }); tree_1[i].append("3", { title: "startup.bat" }); tree_1[i].fold("0"); tree_1[i].fold("1"); tree_1[i].fold("3"); } });
<div id="tree_1" class="row"> <div class="col col-3"> <ul class="tree arrow"></ul> </div> <div class="col col-3"> <ul class="tree line"></ul> </div> <div class="col col-3"> <ul class="tree arrow-file"></ul> </div> <div class="col col-3"> <ul class="tree line-file"></ul> </div> </div> <script id="tpl_node" type="text/template"> <li> <div><i></i> <!= title !></div> <ul></ul> </li> </script>
Result
API
Leave a comment
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus