1.2.4 • Published 7 years ago

angular-multipleselect v1.2.4

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

angular-multi-select

An Angular directive for a multi-select field type.

Demo

npm.io

https://embed.plnkr.co/0c4dvGOsSda1soHal8mH/

Installation

bower install angular-multipleselect
npm install angular-miltipleselect

Include angular-multi-select.js or angular-multi-select.min.js

Usage

JS

angular.module("app",["multiSelect"])

.controller("main", function($scope) {
    $scope.settings = {
        display: "value",
        compare: "id"
    }
    
    $scope.disabled = false
    
    $scope.options = [{
        "value": "Banana",
        "id": 0
    }, {
        "value": "Orange",
        "id": 1
    }]
    
    $scope.OnChange = function(obj) {
        console.log(obj, $scope.selectedElements);
    }
}

HTML

<multi-select ms-settings="settings" ms-disabled="disabled" ms-model="selectedElements" ms-change="OnChange" ms-options="options"></multi-select>
1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.1.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago