enhanced javascript plugins
- added expand & collapse method in PushMenu - added expandSidebar & sidebarButtonSelector option in Treeview - updated docs
This commit is contained in:
@@ -60,6 +60,8 @@ Example: `$(document).on('shown.lte.pushmenu', handleExpandedEvent)`
|
||||
| Method | Description
|
||||
|-|-
|
||||
|toggle | Toggles the state of the menu between expanded and collapsed.
|
||||
|collapse | Collapses the sidebar menu.
|
||||
|expand | Expands the sidebar menu
|
||||
{: .table .table-bordered .bg-light}
|
||||
|
||||
Example: `$('[data-widget="pushmenu"]').PushMenu('toggle')`
|
||||
|
||||
@@ -40,6 +40,8 @@ $('ul').Treeview(options)
|
||||
|animationSpeed | Number | 300 | Speed of slide down/up animation in milliseconds.
|
||||
|accordion | Boolean | TRUE | Whether to collapse the open menu when expanding another.
|
||||
|trigger | String | `[data-widget="treeview"] .nav-link` | Selector of the element that should respond to the click and result in expanding or collapsing it sibling sub menu.
|
||||
|expandSidebar | Boolean | FALSE | Whether to expand sidebar on open menu.
|
||||
|sidebarButtonSelector | String | `[data-widget="pushmenu"]` | Selector of the sidebar button.
|
||||
{: .table .table-bordered .bg-light}
|
||||
|
||||
> ##### Tip!
|
||||
|
||||
Reference in New Issue
Block a user