Free Sample
+ Collection

jQuery UI Cookbook

Cookbook
Adam Boduch

For jQuery UI developers this is the ultimate guide to maximizing the potential of your user interfaces. Full of great practical recipes that cover every widget in the framework, it’s an essential manual.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782162186
Paperback290 pages

About This Book

  • Packed with recipes showing UI developers how to get the most out of their jQuery UI widgets
  • Solutions to real-world development issues distilled down in a reader-friendly approach
  • Code examples written in a concise and elegant format making it easy for the reader to adapt to their own style

Who This Book Is For

If you are a jQuery UI developer looking to improve your existing applications, extract ideas for your new application, or to better understand the overall widget architecture, then jQuery UI Cookbook is a must-have for you. The reader should at least have a rudimentary understanding of what jQuery UI is, and have written some code that uses jQuery UI.

Table of Contents

Chapter 1: Creating Accordions
Introduction
Section navigation using the Tab key
Dynamically changing the height style
Resizable content sections
Controlling spacing with themes
Sorting accordion sections
Dragging-and-dropping between accordions
Chapter 2: Including Autocompletes
Introduction
Styling the default input with themes
Building data sources using select options
Using multiple data sources
Remote autocomplete filtering
Custom data and categories
Applying effects to the drop-down menu
Chapter 3: Crafting Buttons
Introduction
Making simple checklists
Controlling the spacing with buttonsets
Filling space with buttons automatically
Sorting buttons within a group
Using effects with the button hover state
Button icons and hiding text
Chapter 4: Developing Datepickers
Introduction
Working with different date formats
Making a full-sized calendar widget
Displaying month-to-month effects
Appointment reminders as tooltips
Restricting the date range
Hiding the input field
Additional calendar data and controls
Chapter 5: Adding Dialogs
Introduction
Applying effects to dialog components
Waiting for API data to load
Using icons in the dialog title
Adding actions to the dialog title
Applying effects to dialog resize interactions
Using modal dialogs for messages
Chapter 6: Making Menus
Introduction
Creating sortable menu items
Highlighting the active menu item
Using effects with menu navigation
Building menus dynamically
Controlling the position of submenus
Applying themes to submenus
Chapter 7: Progress Bars
Introduction
Displaying file upload progress
Animating progress changes
Creating progressindicator widgets
Using states to warn about thresholds
Giving progressbars labels
Chapter 8: Using Sliders
Introduction
Controlling the size of the slider handle
Removing the handle focus outline
Using master sliders and child sliders
Marking step increments
Getting range values
Changing the slider orientation
Chapter 9: Using Spinners
Introduction
Removing the input focus outline
Formatting currencies for local cultures
Formatting time for local cultures
Controlling the step between values
Specifying the spin overflow
Simplifying the spinner buttons
Chapter 10: Using Tabs
Introduction
Working with remote tab content
Giving tabs an icon
Simplifying the tab theme
Using tabs as URL navigation links
Creating effects between tab transitions
Sorting tabs using the sortable interaction
Setting the active tab using href
Chapter 11: Using Tooltips
Introduction
Changing the tooltip state
Using custom markup in tooltips
Displaying the mouse movement
Applying effects to the tooltip display
Tooltips for selected text
Chapter 12: Widgets and More!
Introduction
Accordions to tabs, and back again
Building a custom widget from scratch
Building an observer widget
Using widgets with Backbone applications

What You Will Learn

  • Benefits and tricks in each jQuery UI widget
  • Build your own widget using the widget factory and the theme framwork
  • Built-in event-handling utilities for inter-widget communication
  • Extend widgets to provide the missing behavior your application needs
  • Extend and improve the design of each widget using the theme framework, overriding defaults such as borders and backgrounds
  • Details about different widget configurations not covered in the jQuery UI documentation
  • Discover the role of each widget in an application and how they collectively contribute to a better user experience
  • Explore coding conventions that work best when writing jQuery UI code
  • Learn about unique perspectives on approaches to widget development – maintainability matters

In Detail

jQuery UI is the quintessential framework for creating professional user interfaces. While jQuery core lays the foundation for interaction with the DOM and handling events, jQuery UI fills in the user interaction gap. This book will give you a huge productivity boost out of the box with jQuery UI, and help you understand the framework, inside and out.

"jQuery UI Cookbook" provides you with practical recipes featuring in-depth coverage of every widget in the framework, including how to address limitations that impact your everyday development activities with these widgets. You'll get a better idea of the big picture – how the framework is composed, how the widgets relate to one another, and how to build on those patterns.

Be it a minor tweak on the visual design of a progress bar or a fundamental change in a widget to meet your needs, "jQuery UI Cookbook" covers scenarios both big and small. You can show reminders as tooltips, apply a variety of effects to the menu widget, and start interactions between the dialog widget and API data using deferred objects. These and many more interesting tasks are covered in this book, which can be done with smooth learning and great understanding. You will see how button widgets can fill the width of their containing element, making the layout more consistent. Tabs can be sorted and moved between widgets. You will learn how to do all these things within the context of the big picture, by finding out why the components work the way they do, making you well-versed in jQuery UI.

Authors

Read More