I found a dynamic component from Flextools in 3D warehouse.
It has an attribute that can make different attributes appear or disappear. I’m trying to replicate this principle, but I don’t understand how it works. Can anyone help me?
In the description of the component attribute it says “double click to reach more settings”, could mean you enter a child component for editing. This child may have its own attributes and the ones still “visible” on the inside are identically named from the outer components so it looks like hidden or showing, but now we are seeing the inner set of attributes. From what I understand components can “see” custom attribute values 1 step in or out (parent/child), so if you have nested components 3 or more deep and want to use the values you make pointer attributes as place holders every other nested component to relate the data. Just my thoughts, Hope this helps
Hi Lucas,
The ability to hide attributes is a custom function we’ve added to Dynamic Components and in order for it to work, the FlexTools extension must be installed (Either the Pro version or the free Component Finder version).
In the Component Attributes Editor append two underscores and the word HIDDEN, like:
“attribute__HIDDEN” and the value would be a text string with names of attributes would want to hide their labels from the interface separated with a “;”.
For example to hide 3 attribute labels:
attribute__HIDDEN = “attribute_to_hide_1;attribute_to_hide_2;attribute_to_hide_3”.
You could add conditions to hide this or that label depending on some logic:
attribute2__HIDDEN = IF(something = 1, “attribute_to_hide1” , “attribute_to_hide2”)
I hope this helps