Date Entry & Calendar Component

Gladiator Components >> Date Entry & Calendar Component >> API Reference

Date Entry & Calendar Component

Normally a calendar component is called from a date entry component. Usage of the date entry component is documented here.

CSS Dependencies

Javascript Dependencies

Sample Usage

//
//
// Get the node where the date entry components
// will be inserted:
//
var formNode = document.getElementById("myForm");
//
// Create the date entry components.
// Parameters are:
//
// => label
// => id
// => parentNode where component will go
//
var date_arrival = new gDateEntry("Arriving","date_arrival",formNode);
var date_departure = new gDateEntry("Departing","date_departure",formNode);
//
// Seed objects with suggested dates:
//
//document.getElementById("date_arrival").value="2006-12";
//document.getElementById("date_departure").value="2007-01";