The oxy_popup built-in form control is used to offer a contextual menu
that provides quick access to various actions. A pop-up form control can display single or
multiple selections.
oxy_popup form control supports the following
properties:color property is
inherit, the form control has the same color as the element that was
used to insert it.visibility property to
-oxy-collapse-text to render the text only in the form
control that the oxy_editor function specifies.ascending and
descending.true or false (default value). To
make the form control inherit its font from its parent element, set the
fontInherit property to true.p:before {
content: oxy_popup(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}resultSeparator
property is used.ascending and descending.resultSeparator property cannot
exceed one character.single (default value)
and multiple.editorSort and
rendererSort properties have a higher priority. The possible values of
this property are ascending and descending.tooltip - Specifies a tooltip to be displayed when you hover over the form control.
tooltips - Associates tooltips to each value
in the 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.
link:before{
content: oxy_popup(
edit, '@href',
values, "Spring, Summer, Autumn, Winter",
tooltips, "Iris${comma}Snowdrop, Gardenia${comma}Liliac,
Chrysanthemum${comma}Salvia, Gerbera",
selectionMode, single);
}(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 (default value) and false.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).popupWithMultipleSelection:before {
content: " This editor edits an attribute value.
The possible values are specified
inside the CSS: "
oxy_popup(
edit, "@attribute",
values, "value1, value2, value3, value4, value5",
labels, "Value no1, Value no2, Value no3, Value no4, Value no5",
resultSeparator, "|",
columns, 10,
selectionMode, "multiple",
color, "blue",
fontInherit, true);
font-size:30px;
}oxy_popup form control in a CSS file
, invoke the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_popup 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: