Table of Contents

behavior: calendar

Calendar element behavior. Element is rendered as a month view.

Example, calendar input element:

<input type="calendar" name="calendar" value="2004-01-24" />

Calendar element is sensitive to current user' locale settings, e.g. it will use localized names of months and week days.

Elements

that have this behavior applied by default (see master style sheet):

Attributes

this behavior knows about:

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: calendar generates:

Value

type json::value::V_STRING, reflects current selected date (table cell of the calendar).

Special key combinations

You can override styles of components of the calendar, see master style sheet for the names of parts. For example, to define different style of today's cell you may use following CSS declaration:
input[type="calendar"] td.day.today { background-color:yellow; }