how to create your own jquery plugins and ui widgets

10
How to Create Your Own jQuery Plugins and UI Widgets Presented By: Sasha dos Santos BarCamp Tampa Bay 2013 http://slidesha.re/142RZOz This presentation covers creating your own jQuery plugins and UI widgets. Create your own library of reusable code using jQuery as a foundation. It focuses primarily on UI widget authoring using the jQuery UI Widget Factory.

Upload: sasha-dos-santos

Post on 19-May-2015

1.172 views

Category:

Technology


4 download

DESCRIPTION

This presentation covers creating your own jQuery plugins and UI widgets. Create your own library of reusable code using jQuery as a foundation. It focuses primarily on UI widget authoring using the jQuery UI Widget Factory.

TRANSCRIPT

Page 1: How to Create Your Own jQuery Plugins and UI Widgets

How to Create Your Own jQuery Plugins and UI Widgets

Presented By: Sasha dos Santos

BarCamp Tampa Bay 2013

http://slidesha.re/142RZOz

This presentation covers creating your own jQuery plugins and UI widgets. Create your own library of reusable code using jQuery as a foundation. It focuses primarily on UI widget authoring using the jQuery UI Widget Factory.

Page 2: How to Create Your Own jQuery Plugins and UI Widgets

About The Presenter

• ASP .NET Developer w/ interest in JavaScript, GIS and mobile

• Graduate of the University of South Florida• Twitter: @SashaGeekette • Blog: SashaGeekette.wordpress.com• Linked In: http://

www.linkedin.com/in/hiresasha

Page 3: How to Create Your Own jQuery Plugins and UI Widgets

Let’s Fiddle…

http://bit.ly/NtmpOU

Page 4: How to Create Your Own jQuery Plugins and UI Widgets

Let’s Fiddle…

http://jsfiddle.net/sashageekette/VjKzU/

Page 5: How to Create Your Own jQuery Plugins and UI Widgets

Intro to jQuery UI

Page 6: How to Create Your Own jQuery Plugins and UI Widgets

Intro to jQuery UI Widget Factory

• All jQuery UI widgets built on this reusable base• Use to create stateful plugins• Simplifies common tasks• Create namespace• Merge user options with default options• Event wiring• Pseudo-selector• Inheritance

Page 7: How to Create Your Own jQuery Plugins and UI Widgets

Lets Fiddle…

Goal: Replicate the basic functionality of the ASP .NET AJAX Control Toolkit’s Rating control

http://bit.ly/14i6HjU

Page 8: How to Create Your Own jQuery Plugins and UI Widgets

Lets Fiddle…

http://jsfiddle.net/sashageekette/9b7RM/

Page 9: How to Create Your Own jQuery Plugins and UI Widgets

References

• Project Silk: http://msdn.microsoft.com/en-us/library/hh404085.aspx

• learn.jquery.com: https://github.com/jquery/learn.jquery.com/tree/master/page/jquery-ui/widget-factory

• Widget Factory: http://ajpiano.com/widgetfactory/#slide1

Page 10: How to Create Your Own jQuery Plugins and UI Widgets

This presentation is available for viewing & download: http://slidesha.re/142RZOz

“See you next time…”