200 likes | 382 Views
Jquery ui. By: Savannah Reiff. Background. Background. Released September 2007 in blog post Free open source software Licensed under the MIT license. What is jQuery UI?.
E N D
Jqueryui By: Savannah Reiff
Background • Released September 2007 in blog post • Free open source software • Licensed under the MIT license
What is jQuery UI? • “A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.” –jqueryui.com • Gets you up and running quickly
Common Features • Datepicker • Menu Bar
Set Up • Need to download package from jqueryui.com • Can choose theme and components to download with package (or choose all components) • In package, index.html includes examples and references to include in each page • In package, folders for css, js and development-bundle
Example with Buttons-HTML <h2 class="demoHeaders">Button</h2> <button id="button">A button element</button> <form style="margin-top: 1em;"> <div id="radioset"> <input type="radio" id="radio1" name="radio"><label for="radio1">Choice 1</label> <input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">Choice 2</label> <input type="radio" id="radio3" name="radio"><label for="radio3">Choice 3</label> </div> </form>
Example with Buttons-JavaScript $( "#button" ).button(); $( "#radioset" ).buttonset();
Example with Button- API • http://api.jqueryui.com/button/
Interactions • Drag • Drop • Resize • Select • Sort
Widgets • Accordion • Autocomplete • Button • Datepicker • Dialog • Menu • Progressbar • Slider • Spinner • Tabs • Tooltip
Effects • Remove Class • Toggle Class • Switch Class • Color Animation • Show • Hide • Toggle • Add Class
Utilities • Position (position an object relative to something else like window, document, element, mouse) • Widget Factory
Themes • Allows user to customize features like buttons, fonts, colors, etc • Can make own theme or choose common one • Default is ui-lightness • http://jqueryui.com/themeroller/
Demo • http://jqueryui.com/demos/