The oxy_datePicker built-in form control is used for offering a text
field with a calendar browser that allows the user to choose a certain date in a specified
format.
oxy_datePicker form control supports the following properties:visibility property to
-oxy-collapse-text to render the text only in the form
control that the oxy_editor function specifies.em,
ex), absolute (in, cm,
mm, pt, pc, px), and
percentage (followed by the % character) length units. The
width property takes precedence over the columns
property (if the two are used together).color property is
inherit, the form control has the same color as the element that was
used to insert it.true or false (default value). To
make the form control inherit its font from its parent element, set the
fontInherit property to true.true (default value) and false.datePicker form control is rendered with a red foreground. By default,
the input is validated. To disable the validation, set this property to
false.p:before {
content: oxy_datePicker(edit, "@attribute", hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}date {
content:
oxy_label(text, "Date time attribute with
format defined in CSS: ", width, 300px)
oxy_datePicker(
columns, 16,
edit, "@attribute",
format, "yyyy-MM-dd");
}oxy_datePicker form control in a CSS
file , invoke the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_datePicker code template.To see more detailed examples and more information about how form controls work in Oxygen XML Author Eclipse plugin, see the sample files in the following directory: [OXYGEN_INSTALL_DIR]/samples/form-controls.
For more information about form controls, watch our video demonstration: