GithubHelp home page GithubHelp logo

treeboo's Introduction


                        TreeBoo

    You build your data. TreBoo do the tree HTML for it.

---------------------------------------------------------------    


  WHAT IS THIS?
    A free JS tree component to use on your web page.
    Simple to use and to modify.
    Tested with Jasmine.js.



  WHAT DOES IT DO?
    The spec/jquery_tree_spec.js specifies this software



  HOW TO USE?
    spec/visual_spec.html shows how to use the Software.
    It uses style/jquery_tree.css to render a fixed data created on HTML.



  HOW TO BUILD YOUR DATA
    father = {
      id:'father_id',
      name:'father_name'
    }
    child = {
      id:'child_id',
      name:'child_name'
    }
    father.children = [child]



  AVAILABLE METHODS
    json_node = {id:'', name:'', children:[]}
      JSON node

    new TreeBoo([json_node1, json_node2, ...])
      builds the TreeBoo object and all Node objs inside it

    new Node()
      builds the Node object

    node.node(node_id)
      returns itself or a child that is under node_id

    node.uncheck_node()
    node.check_node()
      change node status toggling it between 'checked' and 'unchecked'

    node.uncheck_all_nodes()
    node.check_all_nodes()
      change status of itself and its children

    node.checked_nodes()
    node.unchecked_nodes()
      get a Node array
      

treeboo's People

Contributors

brolim avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.