Is there a way to display an image grid with tick able Images in Nativescript Angular?

ⅰ亾dé卋堺 提交于 2019-12-25 01:00:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!