Copy link to clipboard
Copied
Hi,
Is it possible to have the controls in my component states inherit their width from the default state?
OR
Is it possible to tell my controls in a component to take 100% width of the component itself?
I have built a Tab component that I built that I need this for. The same would apply to any other component that needs to be resized based on it's label - for example, a button.
Thank you.
Copy link to clipboard
Copied
Hi Doug123abc,
Thank you for contacting us,Yes you can change the width of the component states[ say state2, state3] apart from default state.You can add states to the component, according to the new changes you can apply to the states, but the same will be reflecting to the the instance of the main component.
Hope it helps,
Regards,
Ashwini.
Copy link to clipboard
Copied
Hello Ashwini,
Thank you, I am aware that controls in the different states can be sized independently.
What I am looking for though is to have them a) take 100% of the component width or b) resize based on the default state.
Imagine a component for a Tab. The tab will have different text in it. Example: "Home", "About" or "Contact" and I would simply like to resize the component in it's default state to suit the amount of text. Currently, I am having to enter each state to resize, which is very time consuming & takes away from the advantages of having a single Tab component.
Can you share any further thoughts?
Thank you.