Commands

Commands are small pieces of information sent to the fronted for execution. they are used to update widgets, to load JS or CSS code or to call some other functions inside the frontend.

Right now this mechanism is not really useful because there is no a way to define custom commands handler on the frontend. But in the future such facility may be added.

API

Collects commands added using a call to add-commands during the body execution.

Commands list can be aquired using get-collected-commands function.

Returns all commands created during AJAX request processing in order as they where added.

Pushes a new command into the stack.

After action processing these commands will be sent for execution on the client.

Pushes all commands from the list into the stack.

After action processing these commands will be sent for execution on the client.