Browse the docs

Show a notice in the page

Shows a small notice inside the page.

Show text in the page

Details #

A small notice in its own shadow root at the top of the page. style is info, success, warning or error; seconds is how long (default 3).

Parameters #

ParameterTypeRequiredValuesWhat it does
texttextYesWhat to say. Required.
browserone ofsafari chrome front
secondsnumberHow long.
styleone ofinfo success warning errorinfo, success, warning or error.
tabany valueWhich tab.

Every step also accepts label, onFailure, timeout and dryRunSafe.

Examples #

Tell the page it worked
Do
  1. Show “Saved” in the page
Open in Switchboard to try it