Interface DateTagDeclaration

All Superinterfaces:
HasAccessKey, HasAutoSpacing, HasBinding, HasConverter, HasConverterMessage, HasHelp, HasId, HasIdBindingAndRendered, HasLabel, HasLabelLayout, HasPlaceholder, HasRequiredMessage, HasTabIndex, HasTip, HasValidator, HasValidatorMessage, HasValue, HasValueChangeListener, IsDisabled, IsFocus, IsReadonly, IsRendered, IsRequired, IsVisual

Renders a date input field.

For a time input field set you'll need to set the <f:convertDateTime type="time"> inside the <tc:date>.

If there is no converter given, a default instance of DateTimeConverter will be used.

  • Method Details

    • setTodayButton

      void setTodayButton(String required)
      If true, a today- or now-button is displayed.
    • setValue

      void setValue(String value)
      Sets the minimum value of the date.
      Specified by:
      setValue in interface HasValue
    • setMin

      void setMin(String min)
      Sets the minimum value of the date.
    • setMax

      void setMax(String max)
      Sets the maximum value of the date.
    • setStep

      void setStep(String step)
      Sets the step of a date or time picker. Value is in seconds. Reasonable values are e.g. 0.001, 1, 5, 10, 60, 300, 3600. If not set, browsers drop the seconds, so it's the same as the value of 60. To show seconds use 1. To show milliseconds use 0.001. Browser support is in progress.
    • setType

      void setType(String type)
      Type of the date/time input. Warning: month and week currently not supported.