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.
that have this behavior applied by default (see master style sheet):
<input type=“calendar” /> <widget type=“calendar”></widget> this behavior knows about:
value=“YYYY-MM-DD” - initial value of the input element - string. Format of the date in this string is fixed: year - four digits, '-', month - two digits, '-', day - two digits.Together with the standard set of events (mouse, keyboard, focus) behavior: calendar generates:
type json::value::V_STRING, reflects current selected date (table cell of the calendar).
input[type="calendar"] td.day.today { background-color:yellow; }