Shridhar Acharya
Shridhar Acharya

Reputation: 93

How to use ng-blur function in angularjs-dropdown-multiselect directive

I am using angularjs-dropdown-multiselect Directive. I want to call a function after the selection process. I am not able to use ng-blur function inside this directive. Please help me out

Following is my code

<div class="multiselectDropDown" ng-dropdown-multiselect="" 
   disabled="disabled" options="resultsWithInfo" selected- 
   model="selected_baselines"
   extra-settings="selected_baseline_settings" translation- 
   texts="selected_baselines_customTexts" ng-blur="addUsers()">
</div>

Upvotes: 2

Views: 1260

Answers (1)

Paka
Paka

Reputation: 1053

You can call onSelectionChanged callback with "events" attribute. Below is the code sample

HTML

<div ng-dropdown-multiselect="" options="example1data" events="onChange" selected-model="example1model">

Controller

$scope.onChange = {
  onSelectionChanged : function () {
    alert("trigger me")
  }
}

Upvotes: 4

Related Questions