The oxy_textfield built-in form control is used for entering a single
line of text in a graphical user interface box. A text field may include optional content
completion capabilities, used to present and edit the value of an attribute or an
element.
The oxy_textfield 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).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.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.color property is
inherit, the form control has the same color as the element that was
used to insert it.false, the Content Completion
Assistant considers the entire text as the prefix for its proposals. If
the value is true (the default value), the space is the delimiter for the
values and thus it is not included in the prefix (the prefix will be whatever comes after
the space).For example, suppose the possible values for your text
field are: value a, value b, and other
values. If the hasMultipleValues property is set to
true and the user enters "value " (notice the
space character after 'value') in the text field, the Content Completion
Assistant will suggest all three values because the prefix is whatever comes
after the space, and in this case the user did not enter anything after the space. If
the hasMultipleValues property was set to false, the
Content Completion Assistant would only suggest value a
and value b because the space is considered part of the
prefix.
p:before {
content: oxy_textfield(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}@xml:lang attribute is not specified explicitly on an ancestor
element.element {
content: "Label: "
oxy_textfield(
edit, "@my_attr",
values, "value1, value2",
color, "red",
columns, 40);
}oxy_textfield
form control in a CSS file , invoke
the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_textfield 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: