View Source PetalComponents.Alert (petal_components v1.0.8)
Link to this section Summary
Functions
Attributes
color(:string) - Defaults to"info".with_icon(:boolean) - adds some icon base classes. Defaults tofalse.class(:string) - CSS class for parent div. Defaults to"".heading(:string) - label your heading. Defaults tonil.label(:string) - label your alert. Defaults tonil.close_button_properties(:list) - a list of properties passed to the close button. Defaults tonil. Global attributes are accepted.
Slots
inner_block
Link to this section Functions
attributes
Attributes
color(:string) - Defaults to"info".with_icon(:boolean) - adds some icon base classes. Defaults tofalse.class(:string) - CSS class for parent div. Defaults to"".heading(:string) - label your heading. Defaults tonil.label(:string) - label your alert. Defaults tonil.close_button_properties(:list) - a list of properties passed to the close button. Defaults tonil. Global attributes are accepted.
slots
Slots
inner_block