Hi Ofer,
What Manish is trying to tell you is that you can put a argument on your doc-grid element so you don't have to query the DOM.
While it is technically possible to do what you ask, I would advise against it. Why? you might ask. Well, a couple of reasons.
Firstly, separation of concerns. Your way of doing this, is putting part of the business logic into the template. Even worse, something that no one might notice will have an significant meaning (namely the place your component is put).
secondly, If you do this, your code will be tightly coupled to the DOM, that means you can't use server-side rendering or web workers i, or other rendering engine's(nativescript for now).
Regards
Sander