Form Controls
Oxygen XML Editor provides a variety of built-in form controls that allow users to interact with documents with familiar user interface objects. These form controls are defined in CSS stylesheets that are used to render Author mode. For customization purposes, Oxygen XML Editor also supports custom form controls in Java.
How to Add a Built-in Form Control in Author Mode
Form controls can be added by defining them in the CSS associated with the XML document.
- Create a custom CSS file.
- Define the form control in the CSS using its dedicated CSS function. For example, to
add a date picker form control, its
dedicated function is
oxy_datePicker
. - Associate the CSS file with the XML document in one of the following ways:
- If you have a framework (document type) already created for this XML vocabulary, create a CSS in the framework directory and associate the CSS with the framework. This approach is recommended if you intend on sharing the customization with others.
- If you do not have a framework, you can associate the CSS to the XML document through a Processing Instruction.
Resources
For more information about form controls, watch our video demonstration: