Topics

yuidatetime Control - yuidatetimecontrol Class

The yuidatetime control places a YUI calendar widget and date/time control in the form.  It uses the yuidatetimecontrol class in the forms/controls folder.

The yuidatetime control accepts several parameters:

  • name (required)
  • id
  • edit_text
  • show_date
  • show_time
  • value
  • default
  • display_only
  • checked
  • required
  • flip

An example of the yuidatetimecontrol control:

{control type="yuidatetime" name="publish" label="Publish Date" edit_text="Publish Immediately" value=$record->publish}
Loading Help