Giter Site home page Giter Site logo

osfp-pakistan / angular-multi-select-tree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arago/angular-multi-select-tree

0.0 2.0 0.0 84 KB

Angular multi select tree

Home Page: https://kristjanliiva.github.io/angular-multi-select-tree

License: MIT License

JavaScript 73.57% CSS 16.70% HTML 9.73%

angular-multi-select-tree's Introduction

angular-multi-select-tree

Lightweight Angular multi select tree directive with arbitrary depth.

Size gzipped 3kb.

Demo Page:

[Demo] (http://KristjanLiiva.github.io/angular-multi-select-tree)

Dependencies not included in dist

  • Angular - tested with 1.5.x but should work starting from 1.3.x
  • Bootstrap (only css) - tested with 3.x

Features

<multi-select-tree
  data-input-model="[{'id':'','name':'',children:[]}]"
  multi-select="true"
  data-output-model="selectedItem"
  data-default-label="Nothing selected"
  data-callback="selectOnly1Or2(item, selectedItems)"
  data-select-only-leafs="false"
  data-switch-view-label="test1"
  data-switch-view="true">
</multi-select-tree>

Download:

Download dist and include

<script type="text/javascript" src="../dist/angular-multi-select-tree.js"></script>
<link rel="stylesheet" href="../dist/angular-multi-select-tree.css">

NPM (the module is not published but can be installed from github)

"angular-multi-select-tree": "git+https://[email protected]/KristjanLiiva/angular-multi-select-tree.git"

Include it in the usual ways, and inject

import multiSelectTree from 'angular-multi-select-tree';
angular.module('app', ['multi-select-tree']);

Example for loading CSS using webpack webpack.conf

resolve: {
    modules: ['node_modules', 'src'],
      alias: {
        'angular-multi-select-tree.css': path.join(__dirname, '../node_modules/angular-multi-select-tree/dist/angular-multi-select-tree.css')
      }
  }

and require in your project

require('angular-multi-select-tree.css');

Development

See package.json for available commands

License

MIT, see LICENSE.md.

angular-multi-select-tree's People

Contributors

a5hik avatar kristjanliiva avatar

Watchers

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