Easy Money
Easy Money

Reputation: 527

display button when checkbox is checked

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

Answers (1)

Pierre-Alexandre Moller
Pierre-Alexandre Moller

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

Related Questions