Sha256: 25df09830cbe2a0235745302438bdb2de5c0f0caf13f9526195b6212814b024c

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 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
  * Push(action_name) - This works just like `Goto` except that `Pop` will restore the last action
  * 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 (actions)
    * `context` - The information for the controllers context
    * `__base__` - The address of the controller
    * `__info__` - Holds the `context`, current action, etc. See [Datatypes](./datatypes.md)
### Controller on_entry (global)
    * `context` - The information for the controllers context
    * `__base__` - The address of the controller

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flok-0.0.63 docs/client_api.md