Select Components From ID
S
Subin Adhikari
In perspective We can set a DOMID to any component, it would be awesome to have something like
document.getElementByID("MyId").props.text = "Foo and Bar"
instead of
self.parent.getChild("FlexContainer").getChild("MyId").props.text = "Foo and Bar"
this will allow not to depend on component messaging to accomplish the goal of decoupling and shorten the development time.
it will not be too efficient ( https://forum.inductiveautomation.com/t/select-elements-components-from-id-instead-of-hierarchical/82851/2?u=subin_adhikari ) but it certainly decreases the dev time.
Log In
A
Ashim Poudel
Agree!!
P
Prafulla Timilsina
Nice One!
A
Anish Poudel
Interesting idea!