concept functionality in category jQuery

appears as: functionality, functionality, The functionality
jQuery UI in Action

This is an excerpt from Manning's book jQuery UI in Action.

You have two different ways to handle events in jQuery UI, but which do you use, event handlers or callback functions? In general, callbacks are easier to use because you specify them alongside the widget’s options. But if you need functionality to run for multiple widgets—as the previous example did—you need to use an event handler.

Building forms with native HTML is difficult; a limited number of controls offers a limited set of functionality. In this chapter we’ll look at how the five form widgets of jQuery UI—autocomplete, button, datepicker, selectmenu, and spinner—enhance these native HTML elements and make it easy to build nontrivial forms.

Extending jQuery

This is an excerpt from Manning's book Extending jQuery.

If jQuery offers so much functionality, why would you want to extend it? To keep the size of the jQuery code manageable, only those functions that are generic and widely used are included in the core code (although there’s debate over what’s used and useful). Basic element accessing and modification, event handling, animation, and Ajax handling are provided as functionality that most users require, whereas more specialized abilities are left to others to add.

Fortunately, the jQuery team has recognized that core jQuery can’t do everything, so they’ve provided numerous integration points where others can extend the functionality of jQuery while benefitting from its existing infrastructure and abilities.

The functionality of the plugin is complete. The next step is to style it appropriately to fit in with other jQuery UI widgets.

You can use the Resizable module to enable dragging the border of an element to alter its size. The Selectable module lets you choose items from a list, either individually or via dragging the mouse across them. To reorder items in a list, apply the functionality from the Sortable module, once again using the mouse to drag the items into position. Several widgets are currently available as part of jQuery UI (as shown in figure 8.1), and others are planned and in development to be included in future jQuery UI releases.