Yahoo! Developer Network Home - Help

YDN Site Search

# YUI Library Examples: Calendar Control

# Calendar Control: Examples

The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a single-page or multi-page interface. Calendars are generated entirely via script and can be navigated without any page refreshes. They are also highly configurable, with the ability to customize the contents and look of rendered cells using custom renderer plugins.

- Quickstart Tutorial: Quickly get up and running with the most basic Calendar.
- Multi-Select Calendar: Set up a Calendar that allows for the selection of one or more dates, rather than the single-select default.
- Multi-Page Calendar: Setting up a CalendarGroup to display more than one month at a time.
- Minimum/Maximum Dates: Configure the Calendar to disallow selection before or beyond specified date limits.
- Handling Calendar Events: Use Calendar's events to react to various interesting moments, such as the selection or deselection of dates.
- Calendar and Text Fields: Populate a form's text input field using the Calendar's selected date and vice versa.
- Calendar and Select Fields: Populate a series of form select input fields using the Calendar's selected date and vice versa.
- Using the Render Stack: Customize how specific dates or date ranges are rendered by plugging in custom renderers.
- Popup Calendar: Configure either Calendar or CalendarGroup for use as a popup layer that is displayed above the document.
- Localization - Germany: Use localization features to customize the Calendar for use in Germany.
- Localization - Japan: Use localization features to customize the CalendarGroup for use in Japan.
- Skinning The Calendar: YUI has a default skin for it's controls called "Sam Skin". This example shares the CSS rules which make up "Sam Skin" for the Calendar and CalendarGroup controls.

## Other YUI Examples That Make Use of the Calendar Control

- Calendar Plugin (included with examples for the Rich Text Editor (beta))
- Inline Cell Editing (included with examples for the DataTable Control (beta))
- Using YUI Loader to Load the Calendar Control (included with examples for the YUI Loader Utility (beta))

### Calendar Control:

- User's Guide (external)
- API Documentation
- Cheat Sheet (PDF) (external)

Copyright © 2007 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings