The oxy_checkbox built-in form control is used for a graphical user
interface box that you can click to enable or disable an option. A single checkbox or multiple
checkboxes can be used to present and edit the value on an attribute or element.
oxy_checkbox 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.values property. The value of this property is a list of tooltip
messages separated by commas. If you want the tooltip to display a comma, use the ${comma} variable.true (default value) and false.(values, '1\\, 2\\, 3, 4') will
display a form control that has 1, 2, 3 for the first value and
4 for the second value.true or false (default value). To
make the form control inherit its font from its parent element, set the
fontInherit property to true.. values property. Each item provides a literal
description of the items listed in the values property. These labels can
be translated using the ${i18n()}
editor variable.. If this property
is not specified, the values property is used as the label.p:before {
content: oxy_checkbox(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}checkBox[attribute]:before {
content: "A check box editor that edits a two valued attribute (On/Off)
The values are specified in the CSS:"
oxy_checkbox(
edit, "@attribute",
values, "On",
uncheckedValues, "Off",
labels, "On/Off");
}multipleCheckBox[attribute]:before {
content: "Multiple checkboxes editor that edits an attribute value.
Depending whether the check-box is selected,
a different value is committed:"
oxy_checkbox(
edit, "@attribute",
values, "true, yes, on",
uncheckedValues, "false, no, off",
resultSeparator, ","
labels, "Present, Working, Started");
}oxy_checkbox form control in a CSS
file , invoke the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_checkbox 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: