问题
I am trying to get images into a grid on a Nativescript Angular App and then be able to tick them and move to the next page with the id's or names of those images.
i can do the image grid but i can't make them tickable. I'd be okayy with even just changing transparency on the clicked ones if possible.
Something like this
回答1:
You could use RadListView with GridLayout for this purpose.
Checkmark on the Image is something you have to deal with your ng-template
. Show the checkmark based on a flag in your data item, toggle that flag upon itemTap
.
来源:https://stackoverflow.com/questions/54289150/is-there-a-way-to-display-an-image-grid-with-tick-able-images-in-nativescript-an