flash: Flash a message

Description Usage Arguments

Description

Flash an alert message bootstrap style. It will display the alert in first of the following containers, by order of preference: 'flash-container', 'container', 'container-fluid', 'body[0]'. Use the flash-container though, since it will will be styled to come to the top.

Usage

1
flash(session, text, type = "info", duration = 3)

Arguments

session

session

text

text

type

type: boostrap types ['info', 'warning', 'danger', 'success']

duration

Duration of message (in seconds). If 0, the message stays open until closed.


nverno/sjs documentation built on May 24, 2019, 10:55 a.m.

Related to flash in nverno/sjs...