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.
The
oxy_popup form control supports the following properties:
-
edit - Lets you edit the value of an attribute, the
text content of an element, or Processing Instructions (PI). This property can have the
following values:
- rows - This property specifies the number of
rows that the form control presents.
Note: If the value of the rows property is not specified, the
default value of 12 is used.
- color - Specifies the foreground color of the
form control. If the value of the color property is
inherit, the form control has the same color as the element in which
it is inserted.
Note: This property is used for rendering in the Author
mode.
- visible - Specifies whether or not the form
control is visible. The possible values of this property are true (the
form control is visible) and false (the form control is not
visible).
- tooltips - Associates tooltips to each value
in the values property. The value of this property is a list of
tooltips separated by commas. If you want the tooltip to display a comma, use the
${comma} variable.
- values - Specifies the values that are committed when
the check-boxes are selected. If these values are not specified in the CSS, they are
collected from the associated XML Schema.
- resultSeparator - If multiple
check-boxes are used, the separator is used to compose the final result.
Note: The value of the resultSeparator property cannot exceed one
character.
- selectionMode - Specifies whether the
form control allows the selection of a single value or multiple values. The predefined
values of this property are single and
multiple.
- labels - Specifies the label associated with each entry used for
presentation. If this property is not specified, the values
property is used instead.
- columns - Controls the width of the form
control. The unit size is the width of the w character. This property is used for the visual representation of the form control.
- width - Specifies the width of the content area
using relative (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).
- rendererSort - Allows you to sort the values
rendered on the form control label. The possible values of this property are
ascending and descending.
- editorSort - Allows you to sort the values rendered
on the form control. The possible values of this property are ascending
and descending.
- rendererSeparator - Defines a
separator used when multiple values are rendered.
- fontInherit - This value specifies
whether the form control inherits its font from its parent element. The values of this
property can be true or false.
Note: To make the Pop-up form control inherit its font from its parent element, set
the fontInherit property to true.
Tip: In the subsequent example, the value of the
fontInherit property is true, which
means the pop-up form control inherits the font size of 30px from the
font-size property.
- hoverPseudoclassName - Allows you to change the
way an element is rendered when you hover over a form control. The value is the name of a
CSS pseudo class. When you hover over the form control, the specified pseudo class will be
set on the element that contains the form
control.
p:before {
content: oxy_button(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}
Pop-up Form Control
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",
fontInherit, true);
font-size:30px;
}
Note: You can use the
Content Completion
Assistant in the CSS or LESS editor to easily insert a sample of the form
control by selecting the corresponding code template. The form control code templates are
displayed with a

symbol in
the content complete list.
Tip: To insert a sample of the
oxy_popup form control, invoke the
Content Completion Assistant by pressing
Ctrl Space (Command Space on OS
X) and select
the
oxy_popup
code template.