I am using AngularJS Dropdown Multiselect. http://dotansimha.github.io/angularjs-dropdown-multiselect/#/
And I want to use both the events. But don't know how to configure both. I am able to configure only one of them successfully.
onItemSelect(property)
and
onItemDeselect(property)
HTML
<div ng-dropdown-multiselect="" options="property.dropdowns" selected-model="property.propertyValues"
extra-settings="multiSelectDropdownSettingsMaxOne" ng-required="property.startDate != null" events="onItemSelect(property)"></div>
Update
I tried like this with comma separator but got error
<div ng-dropdown-multiselect="" options="property.dropdowns" selected-model="property.propertyValues" extra-settings="multiSelectDropdownSettingsMaxOne" ng-required="property.startDate != null" events="onItemSelect(property), onItemDeSelect(property)"></div>
Try this:
$scope.yourEvents = {onInitDone: function(item) {console.log(item);},onItemDeselect: function(item) {console.log(item);}};
<div ng-dropdown-multiselect="" options="YourData" events="yourEvents"
selected-model="YourModel" extra-settings="yourSettings">
</div>
[source]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With