RJM
RJM

Reputation: 1178

How do I get all views on a page that have a given class?

I don't see any getViewsByClass() equivalent to getViewById(). Any thoughts on the best way to determine all views on a page that have a particular class?

Upvotes: 1

Views: 675

Answers (1)

Brad Martin
Brad Martin

Reputation: 6177

Use this plugin https://github.com/NathanaelA/nativescript-dom/blob/master/README.md it has a utility method for what you want, since you are correct nothing in the core exposed for that.

Upvotes: 3

Related Questions