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 has been archived by the owner on Dec 16, 2019. It is now read-only.
Hello @pkempenaers
If I am calling a function on Uncheck all, the same function also gets called when Check All is clicked.
my HTML Code <div ng-dropdown-multiselect="" options="facilities" selected-model="invoice.facilities" extra-settings="multidropdownSettings" form-name="step_one_form" translation-texts="translationText" events="customEvents"></div>
My javaScript Code $scope.customEvents = { onSelectAll: function () { console.log('checked') }, onUnselectAll: function () { console.log('unchecked') } };
When Uncheck is clicked, in console, only unchecked is printing. But if Check All is clicked, both checked and unchecked are printed.
My question is how to call a function only when Uncheck All is clicked? I even saw this . It did not help.
In addition to that the in angularjs-dropdown-multiselect.js the function selectAll contains following code. $scope.selectAll = function () { $scope.deselectAll(false); $scope.externalEvents.onSelectAll(); angular.forEach($scope.options, function (value) { $scope.setSelectedItem(value[$scope.settings.idProp], true); }); };
If i remove/comment $scope.deselectAll(false);, it works as expected.
Please do help me with this issue.
The text was updated successfully, but these errors were encountered:
Have you tried using onDeselectAll? I'm using it in my code, and it's working well. You have it listed in the title of this post, but your code doesn't seem to have it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello @pkempenaers
If I am calling a function on Uncheck all, the same function also gets called when Check All is clicked.
my HTML Code
<div ng-dropdown-multiselect="" options="facilities" selected-model="invoice.facilities" extra-settings="multidropdownSettings" form-name="step_one_form" translation-texts="translationText" events="customEvents"></div>
My javaScript Code
$scope.customEvents = { onSelectAll: function () { console.log('checked') }, onUnselectAll: function () { console.log('unchecked') } };
When Uncheck is clicked, in console, only unchecked is printing. But if Check All is clicked, both checked and unchecked are printed.
My question is how to call a function only when Uncheck All is clicked? I even saw this . It did not help.
In addition to that the in angularjs-dropdown-multiselect.js the function selectAll contains following code.
$scope.selectAll = function () { $scope.deselectAll(false); $scope.externalEvents.onSelectAll(); angular.forEach($scope.options, function (value) { $scope.setSelectedItem(value[$scope.settings.idProp], true); }); };
If i remove/comment
$scope.deselectAll(false);
, it works as expected.Please do help me with this issue.
The text was updated successfully, but these errors were encountered: