Sha256: e4d512586f9dc738801f93ae50209d4b0b19fc976dd0ff4da6f2bcfabd4e4fa1

Contents?: true

Size: 1.53 KB

Versions: 19

Compression:

Stored size: 1.53 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 (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

19 entries across 19 versions & 1 rubygems

Version Path
flok-0.0.62 docs/client_api.md
flok-0.0.61 docs/client_api.md
flok-0.0.60 docs/client_api.md
flok-0.0.57 docs/client_api.md
flok-0.0.56 docs/client_api.md
flok-0.0.55 docs/client_api.md
flok-0.0.54 docs/client_api.md
flok-0.0.53 docs/client_api.md
flok-0.0.52 docs/client_api.md
flok-0.0.51 docs/client_api.md
flok-0.0.50 docs/client_api.md
flok-0.0.49 docs/client_api.md
flok-0.0.48 docs/client_api.md
flok-0.0.47 docs/client_api.md
flok-0.0.45 docs/client_api.md
flok-0.0.44 docs/client_api.md
flok-0.0.43 docs/client_api.md
flok-0.0.42 docs/client_api.md
flok-0.0.41 docs/client_api.md