Include chack box to list item on tap/selection


#1

Hello, I am working on Androd App where I should display list of images to user. On Tap/select I should display user with check box option. I have to delete selected photos. Attached is screenshot.

This is just like how Image Gallery will behave. Is there any way I can achieve this? or I have to write my own template?

Thanks


#2

You could try something like this.

 <ion-content>

    <div class="list">

      <span ng-repeat="item in devList">
       
     <label class="checkbox">
       
       <input type="checkbox" 
              ng-show="item.checked == true" 
              ng-model="item.checked" 
              ng-checked="item.checked"/>
          <img src="http://placehold.it/300x300" alt="" />
         </label>
  </span>
    </div>

  </ion-content>

#3

Thanks I will try it out.