Page 1 of 1

Custom Widget Property

Posted: Mon Sep 16, 2013 8:36 am
by Paul_Ramcharitar
How can I add a drop down list in a custom widget property? In this case it is a derived widget. Right now I can assign one value in the widget defaults, but I would like to add a drop down so the user can choose from a list of values.

Re: Custom Widget Property

Posted: Mon Sep 16, 2013 3:27 pm
by Scott Klement
Do I understand this correctly? You want to create a custom drop-down widget, and you want to set up multiple values for the default choices?

The way you'd do that is by making the choices comma-separateed. So there's only one property for all choices, but the choices are separated by a comma.

Re: Custom Widget Property

Posted: Mon Sep 16, 2013 5:35 pm
by Paul_Ramcharitar
Hi scott, not exactly. I want to create a custom widget derived from another widget, for example the css button widget. This widget comes with a "theme" property, which has a drop down list with multiple themes to choose from. Now if a create a custom widget derived from the css button, I lose that drop down list and get a text field to manually enter the theme. I would like to get that drop down list and even modify it to add custom themes of mine.

Re: Custom Widget Property

Posted: Thu Sep 19, 2013 11:25 pm
by Scott Klement
Unfortunately, there's currently no way to have it in a dropdown. When you can choose "Other..." and enter your own value for a property (as is the case with the theme on a CSS button) and you set it to a value that would normally only be available with "Other", it will not show up as a drop-down.

This was actually a request from a customer that we made recently, they were requesting this because even though they set a custom value, they had to go back into the drop down and click "Other" again in order to make changes to it, and it was unintuitive and ***.

Though, I can see why you'd want it for this particular property. Maybe at our next Dev meeting, I could convince the team that we should make an exception for this particular property -- would that help you? Or is it good enough as-is?

Re: Custom Widget Property

Posted: Tue Sep 24, 2013 8:34 am
by Paul_Ramcharitar
Hi Scott, It would be very helpful. My team has created some custom themes using CSS, for the CSS buttons. Right now we manually enter the letter related to the theme in the "theme" property. It would be nice if we could see all that we have created and choose from them in a drop down list.

Thanks a lot.