w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Sidebar
Overview
Events
Properties
Methods
w2sidebar.levelPadding
Defined padding level for nested nodes.
Number, default = 12
This property defined padding for nested nodes.
You can defined it during object creation:
let sidebar = new w2sidebar({ name: 'sidebar', levelPadding: 5, nodes: [ { id: 'id-1', text: 'Level 1', hidden: true }, { id: 'id-2', text: 'Level 2', expanded: true, nodes: [ { id: 'id-2-1', text: 'Level 2.1' }, { id: 'id-2-2', text: 'Level 2.2' } ]}, { id: 'id-3', text: 'Level 3' } ] });
Or any time after the object has been created:
w2ui.sidebar.levelPadding = 20 w2ui.sidebar.refresh()
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus