2022 June Release

Control COOATTREDIT@1.1:CTRLDateTime Permanent link for this heading

This control is used to display datetime properties including a calendar.

Example:
layout {
  row {
    // no arguments
    CTRLDateTime ctrlsampledatetime {
      colspan = 4;
      labelposition = left;
    }
  }
}

layout {
  row {
    // only the date with no calendar symbol is displayed
    CTRLDateTime("dateonly=true NoCalendar=true") ctrlsampledatetime {
      colspan = 4;
      labelposition = left;
    }
  }
}

COOATTREDIT@1.1:CTRLDateTime(
  boolean dateonly,
  boolean omitseconds,
  string Change,
  boolean NoCalendar,
  any Placeholder,
  string InputAutocomplete)

Name

Description

dateonly

Defines whether the date field is displayed without the time field.

omitseconds

Defines whether seconds are omitted in the time.

Change

Defines the JavaScript function, which should be called when the value of the control has been changed.

NoCalendar

Defines whether the date picker is available. By default, the date picker is available.

Placeholder

Defines a string that is displayed as a placeholder in the background of the text field as long as there is no value in it. You can use an ordinary string of a String object if you want multilingual support.

InputAutocomplete

Additional Information