The Day component

The Day component can be used to select a single day by individually choosing the day, month and year.

In addition to the properties listed below, this component inherits properties and methods from the superclass Component. For example, any Day component has a label and tooltip property even though these are not explicitly listed here.

Properties

NameDescriptionDatatypeDefault
fieldsProperties of the fields of the Day component:
• fields.day.type: Type of input for the day field ('number', 'select'). Default is 'select'.
• fields.day.placeholder: The value to display in the day field before it gains focus.
• fields.day.required: If the day should be required for the input.
• fields.day.hide: Whether or not to hide the day.
• These fields are also available for the month and year.
• For the year, you can also set the min/max year with minYear and maxYear fields.
Struct/dict
dayFirstSet to true to make the day the first item instead of the month.BooleanFalse

Methods

NameSyntaxDescription
setOutputAsobj.setOutputAs(outputType)Set the output type used by getSubmissionData. The default is a string. The value can be converted to a datetime object.