Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Where layers really add value however is with conditions and autosizing - see below.

Conditions

To enable the conditional display of a layer and all the widgets within, conditions can be enabled. The conditions can react to changes in the query or facet selection, URL parameters passed to the dashboard and programmatic changes through the dashboard store.

...

  • Query: matches based on the current dashboard query. The query changes every time the user makes a selection in the dashboard, so this can be used to react to user interactions. Examples:

    Condition
    Query contains testShows the layer any time the user searches for "test" - whether through a bookmark, a selection or a search.
    Query is emptyShown when no query has been executed. This can, for example, be used to show a separate interface on the initial homepage screen such as a big search box.
    Query is not emptyShown when any query has been executed.


  • Dashboard Store: matches based on values in the dashboard store. The store can only be updated programmatically in custom widgets. See Dashboard Store for documentation.
  • Facet: matches based on a facet being selected or having a specific value. This is usually used in combination with a facet widget, such as a pie chart or table. The facet name entered currently has to be the internal name of the facet.
  • URL Parameter: used for embedded dashboards to react on parameters that are passed in.
    When using the Share or Embed iFrame options Squirro generates URLs of the form …/app/dashboard/Hwvd5ccARnqeb3oPmJoZOw/y7ROyPSlQd2_PNsxEh4wVg. To add URL parameters to this URL, append them after a question mark and separate them with an ampersand. For example: …/app/dashboard/Hwvd5ccARnqeb3oPmJoZOw/y7ROyPSlQd2_PNsxEh4wVg?welcome=1&system=intranet. This example adds two parameters: welcome which is set to 1 and system which is set to intranet. These can now be accessed, to show conditional information:

...