function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
afwafw 

How do I show/hide properties (design attributes) dynamically

I want to show/hide properties (design attribute) dynamically,
Below is my design file, I want 'Text' visible if 'Button' type selected and if 'Image' type gets selected 'Image URL' should get visible.

<design:component >
    <design:attribute name="type" label="Type" datasource="Button,Image" />
    <design:attribute name="text" label="Text"/>
    <design:attribute name="imageUrl" label="Image URL"/>
</design:component>

Is it this possbile? Please let me know

Thanks,
Greg_ThomsonGreg_Thomson
Afw,

This is not currently possible.  At Dreamforce, I talked to some of the engineers who are working on Lightning, and even one from the Lightning Builder team. They currently have the ability to use use components on the design page for their internally built components, but they have not yet exposed that ability to us. I brought up this exact scenario to them, and they agreed it was something they would like to enable.

If you find this answer helpful and correct, please mark it answered to help the rest of the community.

Greg Thomson
Lightframe.co