Snackbar

A card can be used to display mixed content, together with optional actions, in a visually appealing way.

JSON Structure

All fields prefixed with a star (*) are required

Snackbar

Snackbars inform users of a process that has been performed or that the micro-app will perform. They don't interrupt the user experience, and they don’t require user input, although a snackbar can contain an optional action.

KEY TYPE NOTES
message string The content of the snackbar
severity string Default info. Possible values info, warn, error or success
name string Name of the action button
path string Path for the callback action
method string Method to use when path is specified, defaults to GET
meta object SnackbarMeta object. Contains configuration flags

SnackbarMeta

Snackbar related component holding configuration fields for the snackbar

KEY TYPE NOTES
auto_hide_duration number Time to wait (in ms) until the Snackbar should be automatically closed. If not supplied, zero or null, the default system value applies (usually 7s)

Swagger

The schema can also be found on Swagger Hub here

JSON Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    message: 'Marked as done',
    severity: 'info',
    name: 'Undo',
    path: '/todo/1234/undoDone',
    method: 'post',
    meta: {
        auto_hide_duration: 8000
    }
}