YUI Library Home

Site Search (YDN & YUIBlog):

# 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.
- Calendar Navigator: Enable the Calendar Navigator, to allow the user to jump straight to a specific month/year
- 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.
- Calendar inside a Container: This example wraps Calendar in a Dialog control to provide positioning, button and potentially dragdrop support
- Interval Selection Calendar: This example provides an IntervalCalendar class, a custom version of CalendarGroup which can be used to select start and end dates for date intervals.
- 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)
- Inline Cell Editing (included with examples for the DataTable Control)
- Using YUI Loader to Load the Calendar Control (included with examples for the YUI Loader Utility (beta))
- Simple Calendar Menu Button (included with examples for the Button Control)
- Calendar Menu Button with Date on Button Face (included with examples for the Button Control)
- Simple Application (included with examples for the Layout Manager)
- Complex Application (included with examples for the Layout Manager)
- Simple Profiling (included with examples for the ProfilerViewer Control (beta))

### Calendar Control:

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

Copyright © 2008 Yahoo! Inc. All rights reserved.

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