mirror of https://github.com/ColorlibHQ/AdminLTE
Add option to control sidemenu's tree views.
parent
6e2f5b0708
commit
7ec587b75b
|
@ -63,6 +63,8 @@ $.AdminLTE.options = {
|
||||||
//choose to enable the plugin, make sure you load the script
|
//choose to enable the plugin, make sure you load the script
|
||||||
//before AdminLTE's app.js
|
//before AdminLTE's app.js
|
||||||
enableFastclick: false,
|
enableFastclick: false,
|
||||||
|
//Control Sidebar Tree views
|
||||||
|
enableControlTreeView: true,
|
||||||
//Control Sidebar Options
|
//Control Sidebar Options
|
||||||
enableControlSidebar: true,
|
enableControlSidebar: true,
|
||||||
controlSidebarOptions: {
|
controlSidebarOptions: {
|
||||||
|
@ -160,7 +162,9 @@ $(function () {
|
||||||
$.AdminLTE.layout.activate();
|
$.AdminLTE.layout.activate();
|
||||||
|
|
||||||
//Enable sidebar tree view controls
|
//Enable sidebar tree view controls
|
||||||
$.AdminLTE.tree('.sidebar');
|
if (o.enableControlTreeView) {
|
||||||
|
$.AdminLTE.tree('.sidebar');
|
||||||
|
}
|
||||||
|
|
||||||
//Enable control sidebar
|
//Enable control sidebar
|
||||||
if (o.enableControlSidebar) {
|
if (o.enableControlSidebar) {
|
||||||
|
|
|
@ -54,6 +54,8 @@
|
||||||
//choose to enable the plugin, make sure you load the script
|
//choose to enable the plugin, make sure you load the script
|
||||||
//before AdminLTE's app.js
|
//before AdminLTE's app.js
|
||||||
enableFastclick: true,
|
enableFastclick: true,
|
||||||
|
//Control Sidebar Tree Views
|
||||||
|
enableControlTreeView: true,
|
||||||
//Control Sidebar Options
|
//Control Sidebar Options
|
||||||
enableControlSidebar: true,
|
enableControlSidebar: true,
|
||||||
controlSidebarOptions: {
|
controlSidebarOptions: {
|
||||||
|
|
|
@ -358,6 +358,8 @@ AdminLTE/
|
||||||
//choose to enable the plugin, make sure you load the script
|
//choose to enable the plugin, make sure you load the script
|
||||||
//before AdminLTE's app.js
|
//before AdminLTE's app.js
|
||||||
enableFastclick: true,
|
enableFastclick: true,
|
||||||
|
//Control Sidebar Tree Views
|
||||||
|
enableControlTreeView: true,
|
||||||
//Control Sidebar Options
|
//Control Sidebar Options
|
||||||
enableControlSidebar: true,
|
enableControlSidebar: true,
|
||||||
controlSidebarOptions: {
|
controlSidebarOptions: {
|
||||||
|
|
Loading…
Reference in New Issue