Ok, thanks for the info, im still trying to wrap my head around that.
Maybe im misunderstanding the concept of creating a “readymade” template.
I will try more with the functions you posted above, but so far it seems like manually punching the values in a template is the only thing I get working at this stage, for now. I get the “component” to work, but I need to feed the values into the pre-set bindings manually.
Im gonna try to describe more of what function im after with more pictures in this post.
The feature im after is the same feature Vision has regarding “templates” and “datatypes”, where you had an option to “drop target” and pass along all the values from that datatype into a window.
First, Datatypes created:
After I have created the datatypes, I add them into my tags:
I have now created a view(coordinate view) called “Temperature”, it contains a symbol and a numerical display.
I have added my “Temperature” datatype under “dropConfig.udts”
I can now drag and drop my pre-made tags, and have the premade view appear like I want to.
Problem is getting the data into my display etc… as the actual data I want is outside the “template”.
If you see from the pic below, you can see that the data is passed along the “dragndrop” function via “test”, but I can’t figure out how to use that data to automatically apply to the display and the other binding I have.
I can ofcource bind the parameters manually to “this.props.params”, but that involves more punching and more risk of human errors.
What I can’t figure out, is how do I “script” the actual output of the “dropConfig.udts” before dragging it into a page?
Inside the premade view with the icon and numerical display, I can only access the param from the dropConfig, which return the “String” from what I manually write there.
I tought that since a dropConfig was added to a view, it was probably there to be used, like Vision’s templates drop-targets.