ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Bind ng-change event to input text box

Open riyunoa opened this issue 11 years ago • 2 comments

Is it possible to bind the ng-change event to the input text box? I'm trying to change the width of the dropdown and textbox based on the number of characters the user has already typed.

Thanks in advance!

riyunoa avatar Jul 23 '15 07:07 riyunoa

<ui-select  multiple ng-model="savedItems" ng-disabled="disabled">
 <ui-select-match placeholder="test">{{$item}}</ui-select-match>
  <ui-select-choices repeat="thing in things" refresh="refreshFunction($select.search, $select)" refresh-delay="400">
     {{thing}}
</ui-select>

Then you can use the refreshFunction to grab the information and make a call in your main controller.

jlandry avatar Nov 19 '15 20:11 jlandry

Closing as usage issue.

wesleycho avatar Mar 27 '16 23:03 wesleycho