Simple Tree View
  • Admin
    • Settings
      • Website settings
      • Users settings
        • Users Accounts
        • Users Groups
    • Newsletters
      • Newsletter one
      • Newsletter two
      • Newsletter three
    • Comments
    • Plugins
      • Plugin one
      • Plugin two
    • Users
  • Modules


<div id="simpleTree"> <ul> <li>Admin <ul> <li data-jstree="{&quot;opened&quot;:true}">Settings <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Website settings</li> <li data-jstree="{&quot;opened&quot;:true}">Users settings <ul> <li data-jstree="{&quot;selected&quot;:true,&quot;type&quot;:&quot;file&quot;}">Users Accounts</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Users Groups</li> </ul> </li> </ul> </li> <li data-jstree="{&quot;opened&quot;:true}">Newsletters <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter two</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter three</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-folder-open&quot;}">Comments</li> <li data-jstree="{&quot;opened&quot;:true}">Plugins <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin two</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-user&quot;}">Users</li> </ul> </li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Modules</li> </ul> </div> //Javascript function $('#simpleTree').jstree({ 'core' : { 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'fa fa-folder-open' }, 'file' : { 'icon' : 'fa fa-file' } }, 'plugins' : ['types'] });
Tree View with Checkboxes
  • Admin
    • Settings
      • Website settings
      • Users settings
        • Users Accounts
        • Users Groups
    • Newsletters
      • Newsletter one
      • Newsletter two
      • Newsletter three
    • Comments
    • Plugins
      • Plugin one
      • Plugin two
    • Users
  • Modules


<div id="checkboxesTree"> <ul> <li>Admin <ul> <li data-jstree="{&quot;opened&quot;:true}">Settings <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Website settings</li> <li data-jstree="{&quot;opened&quot;:true}">Users settings <ul> <li data-jstree="{&quot;selected&quot;:true,&quot;type&quot;:&quot;file&quot;}">Users Accounts</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Users Groups</li> </ul> </li> </ul> </li> <li data-jstree="{&quot;opened&quot;:true}">Newsletters <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter two</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter three</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-folder-open&quot;}">Comments</li> <li data-jstree="{&quot;opened&quot;:true}">Plugins <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin two</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-user&quot;}">Users</li> </ul> </li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Modules</li> </ul> </div> //Javascript function $('#checkboxesTree').jstree({ 'core' : { 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'fa fa-folder' }, 'file' : { 'icon' : 'fa fa-file' } }, 'plugins' : ['types', 'checkbox'] });
Tree View with drag & drop
  • Admin
    • Settings
      • Website settings
      • Users settings
        • Users Accounts
        • Users Groups
    • Newsletters
      • Newsletter one
      • Newsletter two
      • Newsletter three
    • Comments
    • Plugins
      • Plugin one
      • Plugin two
    • Users
  • Modules


<div id="dragdropTree"> <ul> <li>Admin <ul> <li data-jstree="{&quot;opened&quot;:true}">Settings <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Website settings</li> <li data-jstree="{&quot;opened&quot;:true}">Users settings <ul> <li data-jstree="{&quot;selected&quot;:true,&quot;type&quot;:&quot;file&quot;}">Users Accounts</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Users Groups</li> </ul> </li> </ul> </li> <li data-jstree="{&quot;opened&quot;:true}">Newsletters <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter two</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Newsletter three</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-folder-open&quot;}">Comments</li> <li data-jstree="{&quot;opened&quot;:true}">Plugins <ul> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin one</li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Plugin two</li> </ul> </li> <li data-jstree="{&quot;icon&quot;:&quot;fa fa-user&quot;}">Users</li> </ul> </li> <li data-jstree="{&quot;type&quot;:&quot;file&quot;}">Modules</li> </ul> </div> //Javascript function $('#dragdropTree').jstree({ 'core' : { 'check_callback' : true, 'themes' : { 'responsive': false } }, 'types' : { 'default' : { 'icon' : 'fa fa-folder' }, 'file' : { 'icon' : 'fa fa-file' } }, 'plugins' : ['types', 'dnd'] });