17
Building UI with jQuery & Wijmo Chris Bannon

Building UI with jQuery and Wijmo

Embed Size (px)

DESCRIPTION

Chris Bannon shows how jQuery can be used to build powerful UI’s for the Web. Discover the benefits of using jQuery to create interfaces, including a separation from which server-side technology you choose. You’ll walk away with knowledge on how to leverage jQuery & Wijmo when building Web apps.

Citation preview

Page 1: Building UI with jQuery and Wijmo

Building UI with

jQuery & Wijmo

Chris Bannon

Page 2: Building UI with jQuery and Wijmo

about:me

Chris BannonProduct Manager@b4nn0n

Page 3: Building UI with jQuery and Wijmo

jQuery

• Makes JavaScript easy• Same code in every browser• Uses CSS selectors to find elements• Simplifies Ajax requests

Duh…

Page 4: Building UI with jQuery and Wijmo

jQuery UI

• Easily apply animation effects• Widget library– Turns HTML into interactive UI– As easy to use as jQuery– Pre-themed with CSS– Function in every browser– Falls back to semantic HTML markup

Page 5: Building UI with jQuery and Wijmo

Wijmo

• Builds on jQuery UI (not replaces it)– Adds features to jQuery UI widgets• Slider, Progressbar, etc.

– Adds new widgets to jQuery UI• Grid, Charts, Tree, etc.

• Themeroller-ready• As easy to use as jQuery• HTML5, CSS3 and SVG

Page 6: Building UI with jQuery and Wijmo

Wijmo Complete

• Complete kit of jQuery UI widgets• Focused on app-centric UI– Data Visualization

• Charts (Bar, Line, Pie)

– Grid– Tree– Data Entry

• Input (Masked, Numeric, Date)• ComboBox

• Commercial license

Page 7: Building UI with jQuery and Wijmo

Wijmo Open

• Focused on common UI elements– Navigation

• Menu• Tabs

– Forms• Textbox, Checkbox, Radio

– Calendar– Tooltip – Layout

• Accordion, Splitter, SuperPanel

– Open Source License

Page 8: Building UI with jQuery and Wijmo

How it Works

HTML Wijmofy! Widget

CSSJava-ScriptHTML

Page 9: Building UI with jQuery and Wijmo

In Other Words

$(“ul”).wijmenu();

Page 10: Building UI with jQuery and Wijmo

$(“code”).show();

Finally

Page 11: Building UI with jQuery and Wijmo

PROTIPSjQuery UI

Page 12: Building UI with jQuery and Wijmo

Use CSS Framework Classes

$("fieldset") .addClass("ui-widget") .addClass("ui-corner-all");

Page 13: Building UI with jQuery and Wijmo

Make Generic UI Builders

$("button").button(); $("input[type='text").wijtextbox();

Page 14: Building UI with jQuery and Wijmo

Use the Pseudo Selector

$("input[type='text") .not(":wijmo-wijinputdate") .wijtextbox();

Page 15: Building UI with jQuery and Wijmo

Create Option Sets

var optionStore = {};optionStore.slideMenu = {             orientation: "vertical",             mode: "sliding" };optionStore.toolbarMenu = {             orientation: "horizontal",             trigger: ".wijmo-wijmenu-item",             triggerEvent: "click" };

Page 16: Building UI with jQuery and Wijmo

Resources

Wijmo: http://wijmo.com jQuery: http://jquery.comjQueryUI: http://jqueryui.comThemeroller: http://jqueryui.com/themeroller/Me: http://twitter.com/b4nn0n

Thanks!

Page 17: Building UI with jQuery and Wijmo

$(this).end();

Goodbye!