Pular para o conteúdo

Conheça Walt Disney World

jQuery UI

jQuery UI
Developer(s) The jQuery Project
Stable release 1.8.18 / February 23, 2012; 43 days ago (2012-02-23)[1]
Preview release 1.9
Development status Active
Written in JavaScript
Type Web application framework Plugin
License GPL and MIT
Website http://jqueryui.com/

jQuery UI is a JavaScript library that provides abstractions for low-level interaction and animation, advanced effects and high-level, themeable widgets, built on top of the jQuery JavaScript library, that can be used to build interactive web applications. It was released in September 2007 announced in a jQuery's blog post by John Resig.[2] The latest release requires jQuery 1.3.2 or later[3]

jQuery UI is free, open source software, dual-licensed under the MIT License and the GNU General Public License, Version 2.

Contents

Features

As of the 1.8.11 release[4]:

Interactions

  • Draggable - Make elements draggable
  • Droppable - Control where dragged elements may be dropped
  • Resizable - Make elements resizeable [5]:
  • Selectable - Advanced selection features for lists of elements
  • Sortable - Make a list of elements easily sortable

Widgets

All of jQuery UI's widgets are fully themeable using a consolidated, coordinated theme mechanism demonstrated by their ThemeRoller.

  • Accordion - Accordion containers
  • Autocomplete - Auto-complete boxes based on what the user types
  • Button - Enhanced button appearance, turn radio buttons and checkboxes into pushbuttons
  • Datepicker - Advanced date-picker
  • Dialog - Show dialog boxes on top of other content, easily and robustly
  • Progressbar - Progress bars, both animated and not
  • Slider - Fully customizable sliders with various features [6]:
  • Tabs - Tabbed user interface handling, with both inline and demand-loaded content

Effects

  • Color Animation - Animate the transition from one color to another
  • Toggle Class, Add Class, Remove Class, Switch Class - Animate the transition from one set of styles to another
  • Effect - A variety of effects (appear, slide-down, explode, fade-in, etc.)
  • Toggle - Toggle an effect on and off
  • Hide, Show - Using the effects above

Utilities

  • Position - Set an element's position relative to another element's position (alignment)

Example

<script type="text/javascript">
 // Make #draggable draggable when the page has loaded.
 // $(f) is shorthand for $(document).ready(f),
 // after document loading has been completed, f is called.
 
 $(function() {
 $("#draggable").draggable();
 });
</script>
<div id="draggable" style = "width: 150px; height: 150px; padding: 0.5em;" class="ui-widget-content">
 <p>Drag me around</p>
</div>

This makes the div with the ID "draggable" draggable by the user's mouse.

Release history

jQuery UI was launched on September 17th 2007[7].

Release date Version number jQuery Dependency Additional notes
Sep 17, 2007 Initial release[8]
June 8, 2008[9] Changes 1.5
April 16, 2009[9] Changes 1.6 1.2.6 Compatibility release for jQuery 1.2.6.
March 3, 2009[9] Changes 1.7 1.3.2+
March 18, 2010[9] Changes 1.8 1.3.2+
Jan 19, 2011 Changes 1.8.9 1.3.2+
Feb 22, 2011 Changes 1.8.10 1.3.2+
March 15, 2011 Changes 1.8.11 1.3.2+
April 13, 2011 Changes 1.8.12 1.3.2+
May 12, 2011 Changes 1.8.13 1.3.2+
Jun 17, 2011 Changes 1.8.14 1.3.2+
Aug 1, 2011 Changes 1.8.15 1.3.2+
Aug 15, 2011 Changes 1.8.16 1.3.2+
Jan 10, 2012 Changes 1.8.17 1.3.2+
Feb 20, 2012 Changes 1.8.18 1.3.2+

References

External links

Personal tools
  • Log in / create account
Namespaces

Variants
Actions
Navigation
Toolbox
Print/export