abstra-docs
Search…
⌃K

Arguments

In Abstra, most behaviors and appearances are controlled with arguments. They are user defined properties of pages, elements and actions.
You can easily identify arguments by their signature expression mode toggle button.
Various arguments controlling elements, actions and pages
You have two different ways of filling arguments:
  • the default UI for each type that has static behavior. For example if you set a text value argument of a text element with its stock UI to Foo Barr, it will always display that text on the element. Note that even though it is a static field you can use the mustache notation as a template utility to fill dynamic data.
  • the expression mode, a text area where you can write JavaScript code and complex logic. For example if you set a text value argument of a text element with expression mode to $.isLoading ? "Loading" : "Done!", it will check the isLoading context variable to decide if its going display Loading or Done!. (Yes, that is a ternary operator, see more on expression mode).