Coder Social home page Coder Social logo

bootstrap-tree's Introduction

Bootstrap Tree v0.2

A lightweight Tree component, built for use with the Twitter Bootstrap framework.

A work in progress. All feedback is welcome.

[10.06.2012] - v0.2 - Added ability to populate branches with Ajax. "Branch" configuration specifies where to get the data, and the parameters to "POST" in the request.

Bootstrap Tree © 2012 Cutters Crossing

'Bootstrap' is © 2012 Twitter, Inc.

http://twitter.github.com/bootstrap

Both are licensed under the Apache License, Version 2.0 (the "License")

http://www.apache.org/licenses/LICENSE-2.0

bootstrap-tree's People

Contributors

cutterbl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-tree's Issues

bad css

Plugin has global styles and styles for tags. It's very bad. Needed class-wrapper.

a:link,
a:visited,
a:hover,
a:active {
  color: #000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  cursor: pointer;
}

Root level [role=leaf] cause a bug

If you load any leaf elements onto the tree which are not contained in a branch it gives an error that the method doesn't exist on undefined... which makes sense

$("body").on("click.tree.data-api", "[role=leaf]", function (e) {
  .........
  e = $.Event("nodeselect", {
    node: $(branch).data("tree").node($this)
  });

I tried hacking in basic support for this, but I couldn't get it right... ideas?

Issues with post.

The tree example didn't work for me out of the box.

Changing line 88 from $.post to $.get fixes the problem for me.

What is the purpose of using $.post in this scenario?

Issue in Safari

Hi,

The bootstrap tree works fantastically in firefox, chrome and IE.

But i am facing issues in Safari. Once you open a branch, it cant be closed.
I get the error:
"Type Issue: Attempted to assign to readonly property"

Please help.

Thanks,
Karan

Unexpected string

On line 54 of bootstrap-tree.js you have a single quote closing a string that is opened with a double quote, causing an error.

Ajax send data Tree

Hi Cutter,

I have little experience with javascript, I'm trying to send data via ajax to a function but can not find the way, is there the possibility to do so?

Regards,

Julián

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.