The jQuery UI team has been pretty busy for the past two and a half years. With more than 500 bug fixes spread over two dozen releases, we’ve been working hard to make jQuery UI as stable and flexible as possible. Last year, we announced a lofty goal:
Our goal is to have a completely refreshed project with the 2.0 release. We will have a much simpler API, better stability, full documentation and a full test suite for every plugin.
Today, we’re proud to announce the first major step toward reaching that goal. jQuery UI 1.9.0 is now available with hundreds of bug fixes, a bigger and better test suite, and improved APIs. In addition to the code, we’ve also deployed all new sites and improved documentation.
New Widget: Menu
The menu widget was technically released in 1.8, but it was bundled inside the autocomplete widget and mostly hidden from users. Menu is now a first class citizen in jQuery UI and is great for inline or popup menus, as well as a great starting point for more complex menu systems. Check out the menu demos and menu documentation for more details.
New Widget: Spinner
The spinner, or number stepper, widget is perfect for handling all kinds of numeric input. Spinners allow users to type a value directly or modify an existing value by spinning with the keyboard, mouse or scrollwheel. When combined with Globalize, you can even spin currencies and dates in a variety of locales. Check out the spinner demos and spinner documentation for more details.
New Widget: Tooltip
The tooltip widget supports a wide variety of uses: local and remote content, custom positioning and animation, mouse tracking, event delegation, and more. Check out the tooltip demos and tooltip documentation for more details.
API Redesign: Accordion
The accordion widget has undergone an API redesign, making it more consistent with other widgets and providing better animation support. Make sure to read the upgrade guide so you can migrate away from the deprecated APIs.
API Redesign: Tabs
The tabs widget has undergone an API redesign, making it more consistent with other widgets and providing better ajax support. Make sure to read the upgrade guide so you can migrate away from the deprecated APIs.
API Redesign: Position
The position utilty has undergone an API redesign, providing better collision detection and support for percent-based offsets. Make sure to read the upgrade guide so you can migrate away from the deprecated APIs.
Improved Widget Factory
We’ve added a lot of functionality to the widget factory, especially related to instantiation and inheritance. There are lots of new features for widget developers and a few new APIs and improvements for widget users as well. Check out the upgrade guide for more details.
Improved Accessibility
We put a lot of effort into making accordion, autocomplete, tabs, menu, spinner, and tooltip as accessibile as possible. Unfortunately ARIA still needs some work before it can be used without hacks, but we’re working closely with standards bodies, browser vendors, and the accessibility community to improve web accessibility beyond jQuery. Our documentation site now includes details about keyboard navigation for each widget.
Renamed Effects Files
All effects files have been renamed to match the jquery.ui.*.js naming pattern. If you’re using individual effect files, you’ll need to update your file references.
Deprecated APIs
As mentioned above, many plugins went through API redesigns. As a result, many existing APIs were deprecated. These APIs will be removed in 1.10.0. The 1.9.0 release includes a flag to disable all deprecated APIs, allowing you to determine if your code is ready for 1.10.0 even before it is released. There are full details on how to use the flag in the upgrade guide.
Supported jQuery Versions
jQuery UI 1.9.0 supports jQuery 1.6 and newer. That’s 11 versions! Multiply that by the number of supported browsers and you’ve got quite a support matrix.
New Sites
Assuming you’re not reading this in a feed reader or some other syndicated format, you’ve probably already noticed that our web site has a brand new look. The sites are still under development, so please bear with us as we add more content and improve upon the design. We’ve also deployed a brand new API documentation site which includes a lot of information that was missing from the old site. If you’re interested in helping improve any of our sites, they’re all hosted on GitHub now, with the repository names matching the domain names. For example, the repository for jqueryui.com is
https://github.com/jquery/jqueryui.com.
Download
File Downloads
Development Bundle:
https://github.com/downloads/jquery/jquery-ui/jquery-ui-1.9.0.zip
Themes Package:
https://github.com/downloads/jqu ... ui-themes-1.9.0.zip
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/301743/viewspace-746040/,如需转载,请注明出处,否则将追究法律责任。