forked from karthicksundararajan/ui-select
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(selectize): add support for multiple selection
Closes angular-ui#295, closes angular-ui#1787
- Loading branch information
1 parent
160f3f3
commit 5fb097a
Showing
5 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="ui-select-match" data-value | ||
ng-repeat="$item in $select.selected track by $index" | ||
ng-click="$selectMultiple.activeMatchIndex = $index;" | ||
ng-class="{'active':$selectMultiple.activeMatchIndex === $index}" | ||
ui-select-sort="$select.selected"> | ||
<span class="ui-select-match-item" | ||
ng-class="{'select-locked':$select.isLocked(this, $index)}"> | ||
<span uis-transclude-append></span> | ||
<span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">×</span> | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{'open': $select.open}"> | ||
<div class="selectize-input" | ||
ng-class="{'focus': $select.open, 'disabled': $select.disabled, 'selectize-focus' : $select.focus}" | ||
ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"> | ||
<div class="ui-select-match"></div> | ||
<input type="search" autocomplete="off" tabindex="-1" | ||
class="ui-select-search" | ||
ng-class="{'ui-select-search-hidden':!$select.searchEnabled}" | ||
placeholder="{{$selectMultiple.getPlaceholder()}}" | ||
ng-model="$select.search" | ||
ng-disabled="$select.disabled" | ||
aria-expanded="{{$select.open}}" | ||
aria-label="{{ $select.baseTitle }}" | ||
ondrop="return false;"> | ||
</div> | ||
<div class="ui-select-choices"></div> | ||
<div class="ui-select-no-choice"></div> | ||
</div> |