Skip to content

Instantly share code, notes, and snippets.

@zindel
Created February 23, 2016 13:53
Show Gist options
  • Save zindel/5fbd74196da98647a83f to your computer and use it in GitHub Desktop.
Save zindel/5fbd74196da98647a83f to your computer and use it in GitHub Desktop.

Actions

Action is a configurable piece of user interface usually serving a single purpose. The configuration of actions is happening in the urlmap.yaml, for example:

/hello-world:
  action:
    type: page
    title: Hello, world!
    text: |
      Hello, world!

The only required field to be configured for an action is type. It, basically, defines the behavior of the action and other allowed/required fields needed to be specified. title and icon fields are common for all actions. They are optional, but recommended for better user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment