How much work is it to add addtional widgets ?

43 views
Skip to first unread message

John Kattenhorn

unread,
Mar 27, 2012, 3:16:36 AM3/27/12
to jui...@googlegroups.com
Hi,

I love the JuiceUI project so far; nice and clean and simple; so far I've used the datepicker to great effect but now I need a multi-select dropdown list. I'm still playing catch-up with JavaScript and JQuery so how hard would it be for me to extend Juice to include this widget ?

Is there any assistance or documentation I could use to assist me ?

Thanks

Andrew Powell (appendTo)

unread,
Mar 27, 2012, 8:27:29 AM3/27/12
to Juice UI
It's important to note that if the multiselect dropdown plugin isn't a
jQuery UI widget, you can't provide a Juice UI control for it.

Your first task is to determine whether you need to extend an existing
asp.net control, or if this multiselect dropdown should be a stand-
alone script control. A standalone control doesn't extend another
control, rather it provides it's own markup.

Juice UI Controls that extend other controls inherit from
JuiceExtender (Position, Resizable, Draggable are examples)
Juice UI Controls that are standalone inherit from JuiceScriptControl
(Slider, Progressbar are examples)

Next make a list of the options and events that the widget provides.

Options are added to the Juice UI control through properties tagged
with the WidgetOption attribute.
Events are added to the Juice UI control through event delegates
tagged with the WidgetEvent attribute.

From there I'd recommend referencing the source code on GitHub.
ProgressBar and Slider have good examples of Options and Events and
how to setup each.



On Mar 27, 3:16 am, John Kattenhorn <john.kattenh...@miltonbridge.com>
wrote:
Reply all
Reply to author
Forward
0 new messages