Actions

Exo allows you to execute several actions.

_.action('action');

or:

_.action({
    action: 'name',
    other: 'arguments',
    ...
});

You can also bind actions to HTML elements by using the magical @onXYZ="action" attribute.

Examples:

<button @class.hidden="media.playing" @onClick="media.play">play</button>

or:

<button @onClick="{'action': 'log', 'message': 'test log!'}">test log</button>

Available actions

More actions will be added with future Exo updates.

General

Media

Open

Custom actions

Theme developers are able to add their own actions (only applies to their themes).

_.setAction('action_name', () => {
    //function code here
});

This also allows you to override default actions.