ngListSelect - An Awesome AngularJS Bootstrap supported directive for add/remove functionality

Features

Requirements

How do I add this to my project?

You can download this by:

<script type="text/javascript" src="https://cdn.rawgit.com/nidhishkrishnan/ngListSelect/master/ngListSelect.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/nidhishkrishnan/ngListSelect/master/ngListSelect.js"></script>

Adding ngListSelect Dependency to your app

// Add ngListSelect as a dependency to your app
angular.module('your-app', ['ngListSelect']);

Use the below syntax in your templates:

 <ng-list-select selected-list="selectedList" key="name" available-list="availableList" button-style="olive" panel-style="olive"></ng-list-select>

Five Built-In Flavours

Alpha (Default)

alpha

Sand

sand

Olive

olive

Pearl

pearl

Blue

blue

Take a look at this Demo

Thinking how to Customize, It's Easy!!!

You can customize the styles of ngListSelect component very easily like as follows:

.ghost {
  background-color: hsl(205, 28%, 26%) !important;
  background-repeat: repeat-x;
  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#7c9db5", endColorstr="#2f4554");
  background-image: -khtml-gradient(linear, left top, left bottom, from(#7c9db5), to(#2f4554));
  background-image: -moz-linear-gradient(top, #7c9db5, #2f4554);
  background-image: -ms-linear-gradient(top, #7c9db5, #2f4554);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #7c9db5), color-stop(100%, #2f4554));
  background-image: -webkit-linear-gradient(top, #7c9db5, #2f4554);
  background-image: -o-linear-gradient(top, #7c9db5, #2f4554);
  background-image: linear-gradient(#7c9db5, #2f4554);
  border-color: #2f4554 #2f4554 hsl(205, 28%, 17.5%);
  color: #fff !important;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.56);
  -webkit-font-smoothing: antialiased;
}
.ghost .panel-heading {
  color: #fff !important;
}

<ng-list-select button-style="ghost" panel-style="ghost" selected-list="selectedList" key="name" available-list="availableList"></ng-list-select>

Ghost

ghost

Take a look at this Working Demo

Want to use it inside a modal popup

Attributes

availableList (required)

selectedList (required)

key (optional)

buttonStyle (optional)

panelStyle (optional)

width (optional)

height (optional)

availableLabel (optional)

selectedLabel (optional)

Working Demo

License

MIT

Contributions

Contributions are very welcome! Please contact me to discuss: nidhishkrishnan@gmail.com