Reputation: 527
I am wondering how to display a button in the header bar when the checkbox is clicked in a listview. Help will be appreciated
Here is my codepen attempted
`http://codepen.io/Hin/pen/KpGJZX`
Upvotes: 0
Views: 205
Reputation: 2354
There is the updated plunker : http://codepen.io/anon/pen/RPevdr
What I've done is modifying the isCheckboxChecked
function. Now this function have a loop to check if one of all your data is checked. If one have it, it will be display because of your ng-hide
$scope.isCheckboxChecked = function () {
for(var i =0 ; i <$scope.tempData.length ; i++){
if($scope.tempData[i].checked){
return true;
}
}
}
Upvotes: 2