Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikemajesty/excalibur-dual-list
Component - Dual List directive in AngularJs and Bootstrap.
https://github.com/mikemajesty/excalibur-dual-list
booststrapduallist dual duallist duallistbootstrap dualselectlist
Last synced: 2 months ago
JSON representation
Component - Dual List directive in AngularJs and Bootstrap.
- Host: GitHub
- URL: https://github.com/mikemajesty/excalibur-dual-list
- Owner: mikemajesty
- License: mit
- Created: 2016-11-02T21:37:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T16:01:48.000Z (almost 6 years ago)
- Last Synced: 2024-10-09T18:10:16.665Z (3 months ago)
- Topics: booststrapduallist, dual, duallist, duallistbootstrap, dualselectlist
- Language: JavaScript
- Homepage: https://excalibur-dual-list.herokuapp.com/
- Size: 64.5 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Excalibur Dual List - The Bootstrap Dual List easier to use in angular
[![Capture.png](https://i.postimg.cc/Y2mDCtz3/Capture.png)](https://postimg.cc/5jbSPdGY)
## Try it yourself.
[click here](https://excalibur-dual-list.herokuapp.com/)# How to install
```JavaScript
bower install excalibur-duallist --save
```# How to use
##### Import to your project the excalibur-duallist(min).js and excalibur-duallist(min).cs files in bower_components folder
```JavaScript
```
Then refer to your module
```JavaScript
var app = angular.module('app', ['excaliburDualList']);
```##### In your controller use the code below
```JavaScript
$scope.myModel = {selectItem: {}};$scope.options = {
title: {label: 'Demo: your title', helpMessage: 'Demo: your help message'},
selectOptions: {initialText: "ALL", isDisable: false, uppercase: true},
boxItemsHeight: 'md',
items: [
{ 'category': 'FF8', 'name': 'Squall Leonhart' },
{ 'category': 'FF8', 'name': 'Quistis Trepe' },
{ 'category': 'FF8', 'name': 'Zell Dincht' },{ 'category': 'FF9', 'name': 'Zidane' },
{ 'category': 'FF9', 'name': 'Garnet' },
{ 'category': 'FF9', 'name': 'Vivi' },{ 'category': 'FF7', 'name': 'Cloud Strife' },
{ 'category': 'FF7', 'name': 'Aerith Gainsborough' },
{ 'category': 'FF7', 'name': 'Vincent Valentine' },],
itemsOrderProperty: '[category, name]',
categories: ["FF7", "FF8", "FF9"],
button: {leftText: "Move All" , rightText: "Move All"},
selectedItems: []
};```
##### In your page use
```Html
```### $scope.options
* **title:**(optional): Title that will be displayed in the directive input text.;
* **title: {label}**(optional): Label in input text.;
* **title: {helpMessage}**(optional): Sub label in input text.;
* **selectOptions:**(optional): Information about the input select.;
* **selectOptions: {initialText}**(optional): First text that will displayed in first select input element.;
* **selectOptions: {isDisable}**(optional): Indicates if the first select text is disabled.;
* **selectOptions: {uppercase}**(optional): Indicates if the all text options in select input is uppercase.;
* **boxItemsHeight:**(optional): Indicates the size of the item box. [{'xs': 150px}, {'sm': 225px}, {'md': 300px}, , {'lg': 450px}];
* **items:**(required): Item that will appear on the no dual list.;
* **itemsOrderProperty:**(optional): Order of the items will appear in the duallist.;
* **categories:**(required): Items that will appear in select that it be used to filter the duallist.;
* **button:**(required): Information about the input button that is used to move all elements.;
* **button: {leftText}**(required): Button left text;
* **button: {rightText}**(required): Button right text;
* **selectedItems:**(required): Items that were selected by the user.;#### Used versions
##### Bootstrap
"version": `3.3.7`
##### Angular
"version": `1.2.32`
### License
It is available under the MIT license.
[License](https://opensource.org/licenses/mit-license.php)