You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Select2 supports allowClear flags in single entry mode as long as placeholder is set.
Adding native support for this feature would be great.
My current workaround is to add select2-allowclear class to the ui-select element, customize the match.tpl.html template and handle the clear click event in my controller.
Markup:
<ui-selectclass="select2-allowclear" ng-model="request.myProp" style="width: 100%;"><ui-select-matchplaceholder="Slect My Prop">{{$select.selected.name}}</ui-select-match><ui-select-choicesrepeat="choice in options.choices | filter:$select.search"><divng-bind-html="choice.name | highlight: $select.search"></div></ui-select-choices></ui-select>
Select2 supports allowClear flags in single entry mode as long as placeholder is set.
Adding native support for this feature would be great.
My current workaround is to add select2-allowclear class to the ui-select element, customize the match.tpl.html template and handle the clear click event in my controller.
Markup:
Template:
Handler:
The text was updated successfully, but these errors were encountered: