| Custom CSS Functions / Form Controls | |
The oxy_button built-in form control is used for graphical user interface objects that invokes a custom Author mode action (defined in the associated Document Type) referencing it by its ID, or directly in the CSS.
oxy_button(action, oxy_action(
name, 'Insert',
description, 'Insert an element after the current one',
icon, url('insert.png'),
operation, 'ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation',
arg-fragment, '<element>${caret}</element>',
arg-insertLocation, '.',
arg-insertPosition, 'After'
)
element {
content: oxy_button(actionID, 'remove.attribute', showText, true);
}
element {
content: oxy_button(actionID, 'remove.attribute', showIcon, true);
}
p:before {
content: oxy_button(hoverPseudoclassName, 'showBorder')
}
p:showBorder {
border: 1px solid red;
}
button:before {
content: "Label:"
oxy_button(
/* This action is declared in the document type associated with the XML document. */
actionID, "insert.popupWithMultipleSelection");
}
symbol in the content complete list.
oxy_button code template. Also, an
oxy_button_in_place_action code template is available that inserts an
oxy_button function that includes an action
parameter.