Announcement
Callout Class
This attribute applies an status to the announcement. By default, it uses secondary color.
Announcement | Callout Class |
---|---|
success | |
warning | |
alert | |
secondary | |
Source code on GitHub: decidim-core/app/cells/decidim/announcement
Plain Text Vs Hash
You can provide as first argument both a plain text and a hash object
Announcement | Callout Class | Argument |
---|---|---|
This is the title
| success | { title: "This is the title", body: "This is the body" }, callout_class: "success" |
This is the title
| warning | { title: "This is the title", body: "This is the body" }, callout_class: "warning" |
This is the title
| alert | { title: "This is the title", body: "This is the body" }, callout_class: "alert" |
This is the title
| secondary | { title: "This is the title", body: "This is the body" }, callout_class: "secondary" |
This is the title
| { title: "This is the title", body: "This is the body" } | |
"I am just plain text" |
Source code on GitHub: decidim-core/app/cells/decidim/announcement