Hi, I have a view and here i have added many items. Now, when i need these items, e.g in property binding, I have to search a long list.
My question that, is there a way that i can group items?
As i can not sort this list.
Since you are using a Coordinate Container you can add other containers like flex or other coordinate containers and name them that way. It also helps a ton if you name your components meaningful names. Treat screen development in Ignition like you are following clean code practices. Meaningful names streamline development and supportability.
On a similar note. I would suggest you shouldn't be searching through items in the component tree. You should put properties at the view mostly. It allows for naming changes and no breaking of bindings across your screen.
Hi,
Good point that all items should be meaningful. I just presented image an example to make my question clear.
You may give me a solution for the structure below:
Current looks like this:
Tank_Water_Pump
Tank_Chemical
Tank_Water
Tank_Chemical_Pump
Label_Tank_Name_Chemical
Label_Tank_Name_Water
Wants to like this:
Tank_Chemical
----->Label_Tank_Name_Chemical
----->Tank_Chemical_Pump
Tank_Water:
----->Label_Tank_Name_Water
----->Tank_Water_Pump
As Ben has already said, the way you accomplish this is by nesting other containers (Coordinate, Flex, etc...) into the Root.
So, in your example, Tank_Chemical
and Tank_Water
would both be container types of your choice.
There is not "component" grouping in perspective like there is in vision.
This isn't exactly what you need with a coord container
Here is an example of flex containers holding other items. This would be the same in your situation. If you want specific positioning within the containers then you will need to the the appropriate container type. Keep in mind wether you are using fixed or percent and how that will affect containers and their contents.
If you're nesting flex containers into a coord just be aware that while the flex bounds will scale with the page (if coord set to percent), the contents within it will not. This may cause you some issues and headaches...
If you're nesting coord containers, then I suggest their aspect ratios be left blank and set to percent, and the main root coord container set to percent and have its aspect ratio set to a binding using the defaultSize prop values
Containers in coord containers are not user friendly like in vision, they're ugly and hard to use. Try copying components from one percent coord to another of differing size total disaster. The only way to maintain your sanity is to design using fixed mode and remembering to change each and every embedded coord back