Variables

Layout variables allow you to share a value across multiple area items or repositories.

Create a new variable

To create a new variable give it a name and select the variable type you would like then click on Create.

Variable names can contain the characters a-Z and no spaces are allowed

Once created the name and type of a variable cannot be changed.

Configure a variable.

Variables have 2 configuration options initial value and initial value func.

Initial value is where you can specify a initial value for your variable.

Initial value func allows you to specify the body of a JavaScript function that will return the initial value.

You can use the play button to run your function.

Using variables

Filter templates

Variables can be used in a repositories filter template.

Property values

A property that supports variables will have a star at the end of it editor. Clicking this star will show the choose a variable modal.

After selecting a variable to use it will display next to the property.

You can remove a variable from a property by clicking on the undo icon.

Set Variable Widget

You can give users the ability to set a variable's value by adding a Set Variable Widget.

results matching ""

    No results matching ""