Print Friendly

Class YAHOO.ext.grid.DateEditor

Package:YAHOO.ext.grid
Class:DateEditor
Extends:CellEditor
Defined In:DateEditor.js
Provides a date editor field, and optionally a DatePicker. The DateEditor provides a method to override (showCalendar) if you don't want to use the built in DatePicker control. The reason I chose to use my own DatePicker control rather than the nice YUI Calendar component is my control was very easy to override events to make it work well with the grid. It's also only 5k compressed, while the YUI Calendar is 40k compressed. The DatePicker supports left/right keys to move months, up/down keys to move years and the mouse wheel to quickly go through the months. The DateEditor supports the following configuration options: For more information on using this editor, see this blog post.

Public Properties

This class has no public properties.

Public Methods

Method Defined By
  DateEditor(Object config) DateEditor
Create a new DateEditor

Public Events

This class has no public events.

Constructor Details

DateEditor

public function DateEditor(Object config)
Create a new DateEditor
Parameters:
  • config : Object

yui-ext - Copyright © 2006 Jack Slocum. | Yahoo! UI - Copyright © 2006 Yahoo! Inc.
All rights reserved.