Coder Social home page Coder Social logo

user-koushik / jstree-bootstrap-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orangehill/jstree-bootstrap-theme

0.0 2.0 0.0 1.89 MB

Reponsive jsTree Twitter Bootstrap 3 Compatible Theme

License: MIT License

JavaScript 66.48% CSS 32.08% HTML 1.44%

jstree-bootstrap-theme's Introduction

jsTree Bootstrap Theme

Since there aren't many jsTree themes out there, we thought we'd make this one freely available. jsTree Bootstrap Theme is created as a part of Proton UI Responsive Admin Panel Theme. The theme is compatible with jsTree 3.

A legacy version compatible with jsTree pre 1.0 fix2 is still available on a separate branch (no longer maintained).

##What is jsTree?

jsTree is a tree view for jQuery (depends on 1.9.1 or later). It is absolutely free (MIT licence) at http://www.jstree.com/ or at https://github.com/vakata/jstree and supports all modern browsers and IE from version 8 up. jsTree can display trees by parsing HTML or JSON and supports AJAX, it is themeable and easy to configure and customize. Events are fired when the user interacts with the tree. Other notable features are inline editing, drag'n'drop support, fuzzy searching (with optional server side calls), tri-state checkbox support, configurable node types, AMD compatibility, easily extendable via plugins.

##Theme Demo Theme demo is available at jsTree Bootstrap Theme Demo Page .

##Responsiveness jsTree Bootstrap Theme is responsive. To see the effect open the demo and scale a browser window down until the window width is less then 768 pixels.

Mobile friendly design should make it easier to tap nodes with more precision.

Getting Started

Download or checkout the latest copy and include jQuery and jsTree scripts as well as proton theme style file in your web page. Then create an instance (in this case using the inline HTML) with theme name set to proton and responsive (optional) set to true.

<link rel="stylesheet" href="dist/themes/proton/style.min.css" />
<script src="dist/libs/jquery.js"></script>
<script src="dist/jstree.min.js"></script>
<div id="container">
  <ul>
    <li>Root node
      <ul>
        <li id="child_node">Child node</li>
      </ul>
    </li>
  </ul>
</div>
<script>
$(function() {
  $('#container').jstree({
    'core': {
        'themes': {
            'name': 'proton',
            'responsive': true
        }
    }
  });
});
</script>

##LESS support

If you wish to further customize the theme you might find it convenient to use included LESS files. The theme also includes a grunt script which you can use to build CSS files.

To develop using grunt files just run grunt (no options required). This will build theme images and CSS.

Do not edit files in the dist subdirectory as they are generated via grunt. You'll find theme source code in the src/themes/proton subdirectory.

jstree-bootstrap-theme's People

Contributors

vedraan avatar brunobatista avatar brunowego avatar tihomiro avatar

Watchers

James Cloos avatar Koushik Sinha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.