Custom Widget Property

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Paul_Ramcharitar
Profound User
Posts: 91
Joined: Fri Aug 03, 2012 11:07 am
First Name: Paul
Last Name: Ramcharitar
Company Name: Banks DIH
City: Georgetown
Zip / Postal Code: 592
Country: Guyana
Contact:

Custom Widget Property

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Custom Widget Property

Post 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.
Paul_Ramcharitar
Profound User
Posts: 91
Joined: Fri Aug 03, 2012 11:07 am
First Name: Paul
Last Name: Ramcharitar
Company Name: Banks DIH
City: Georgetown
Zip / Postal Code: 592
Country: Guyana
Contact:

Re: Custom Widget Property

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Custom Widget Property

Post 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?
Paul_Ramcharitar
Profound User
Posts: 91
Joined: Fri Aug 03, 2012 11:07 am
First Name: Paul
Last Name: Ramcharitar
Company Name: Banks DIH
City: Georgetown
Zip / Postal Code: 592
Country: Guyana
Contact:

Re: Custom Widget Property

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest