Sha256: a606ef77917f1024369730075807e6b24db61040eead824a6d4637564bfd7ae5
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
#Client API Client API covers controller action event handlers. ### Controller MACROS * Embed(view_controller_name, spot_name, context) - Embed a view controller with the name `view_controller_name` inside the current view controller at the spot with a context * Goto(action_name) - Change actions * Request(service_insatnce_name, ename, params) Initiate a service. See [Services](./services.md) for more info. * Send(event_name, info) - Send a custom event on the main queue. * Raise(event_name, info) - Will send an event to the parent view controller (and it will bubble up, following `event_gw` which is set in `Embed` as the parent controller * Lower(spot_name, event_name, info) - Send an event to a particular spot * Helpers * Page Modification - See [User Page Modification Helpers](./vm.md#user_page_modification_helpers) for a list of functions available. ### Controller Event Handlers * Variables * `context` - The information for the controllers context * `params` - What was passed in the event * `__base__` - The address of the controller * `__info__` - Holds the `context`, current action, etc. See [Datatypes](./datatypes.md) ### Controller on_entry * `context` - The information for the controllers context * `__base__` - The address of the controller * `__info__` - Holds the `context`, current action, etc. See [Datatypes](./datatypes.md)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.40 | docs/client_api.md |
flok-0.0.39 | docs/client_api.md |