The oxy_action() Function

The oxy_action() function allows you to define actions directly in the CSS, rather than referencing them from the associated framework.

The oxy_action() function is used from the oxy_button() function.

The arguments received by the oxy_action() function are a list of properties that define an action. The following properties are supported:

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'), 
   showIcon, true)
Tip: A code template is available to make it easy to add the oxy_action function with the Content Completion Assistant by pressing Ctrl Space (Command Space on OS X) and select the oxy_action code template..
Related information
The Button Form Control