Go to page content

growl

Show a growl like message.

Show a message in the upper right corner of the browser window. The message will automatically disappear after some time.

Example:

{% button action={growl text="hello world"} %}

Shows a message with the text "hello world".

Growl accept the following arguments:

ArgumentDescriptionExample
textThe text to be displayed.text="Hola!"
stayWhen true then the message does not disappear automaticallystay
typeType of the message, one of "notice" or "error". Default is "notice".type="error"

See also the actions alert and confirm.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.

Comments

  • avatar

    Holger Winkelmann

    Posted 1 year, 10 months ago.

    Can you provide a sample how to trigger a message like this from the Command Line (Erl Shell) ?

    Thanks,

    Holger

  • avatar

    jeff

    Posted 1 year, 8 months ago.

    This is something I was able to come up with. I'm new to Zotonic and Erlang so it is probably crude.

    http://zotonic.j2-c2.com/article/330/broadcast-from-the-debug-console

  • avatar

    Greg

    Posted 6 months, 5 days ago.

    Ah, I'm curious about how to broadcast from the debug console too!