Announcement

Callout Class

This attribute applies an status to the announcement. By default, it uses secondary color.

Announcement Callout Class
I am an announcement
success
I am an announcement
warning
I am an announcement
alert
I am an announcement
secondary
I am an announcement

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

This is the body

success{ title: "This is the title", body: "This is the body" }, callout_class: "success"
This is the title

This is the body

warning{ title: "This is the title", body: "This is the body" }, callout_class: "warning"
This is the title

This is the body

alert{ title: "This is the title", body: "This is the body" }, callout_class: "alert"
This is the title

This is the body

secondary{ title: "This is the title", body: "This is the body" }, callout_class: "secondary"
This is the title

This is the body

{ title: "This is the title", body: "This is the body" }
I am just plain text
"I am just plain text"

Source code on GitHub: decidim-core/app/cells/decidim/announcement