GithubHelp home page GithubHelp logo

justin-lu / nghierarchicalselector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukemurray/nghierarchicalselector

0.0 2.0 0.0 273 KB

A Hierarchical/Tree Selector control for AngularJS

Home Page: http://lukemurray.github.io/NgHierarchicalSelector/

License: MIT License

JavaScript 51.36% HTML 14.02% CSS 34.62%

nghierarchicalselector's Introduction

Angular tree-selector directive

Hierarchical (or tree) selector for AngularJS. It can either have the whole data structure (a tree) passed to it or set to asynchronously load each level via a callback. It also allows auto-complete searching of the tree, optional multiple selection and keyboard navigation.

Features

  • Select data from a hierarchical/tree structure
  • Asynchronously loading of children, or not
  • Keyboard navigation

Check it out

http://lukemurray.github.io/NgHierarchicalSelector/

Release notes

v0.4.0

  • Added placeholder text functionality

v0.3.4

  • Fix issue with input control not expanding with many selected items

v0.3.3

  • Fix a post back issue for ASP.NET on some browsers

v0.3.2

  • Fix an issue with when the selection attribute is null/undefined

v0.3.1

  • Added in call back to get the tag name
  • Ability to set the initial selected item.

v0.3

  • Added in feedback about the async children loading
  • Default button to show the tree on the right side of control. Use no-button attribute to hide it

TODO

  • Tests
    • yep, should be writing these
  • Docs
    • CSS customisation
  • general
    • set up some repeatable way to do a release
    • add to bower
    • set up CI for the project
  • tree
    • option for parent select selects all children
  • autocomplete typing
    • allow typing at the end of the selected items
    • auto complete list for typing
    • no typing at the end if item selected and not multi select
    • support async for auto complete
  • input control
    • remove selected items by keyboard
  • tree
    • disabled items
    • option for no check boxes in multi select?
    • keyboard, left on a chile node should make the parent the active node
  • popup
    • better positioning of popup when at bottom/edges etc.

Requirements

  • AngularJS 1.3

CSS

.expando - Change the expand marker style .expando-opened - Change the collapse marker style

Contributing

Please do it.

Building

Gulp is used to build the project ('npm install' will install the gulp dependencies).

  • gulp build will build is for local development
  • gulp rel-patch will bump the version and build a release version
  • gulp rel-minor will bump the version and build a release version
  • gulp watch with run 'build' and watch for changes

Testing

...

nghierarchicalselector's People

Contributors

lukemurray avatar timothyoon avatar

Watchers

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