class UiBibz::Ui::Core::Notifications::Components::AlertBody

Create a alert body

Attributes

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Signatures

UiBibz::Ui::Core::Notifications::AlertBody.new(content, options = nil, html_options = nil)

UiBibz::Ui::Core::Notifications::AlertBody.new(options = nil, html_options = nil) do
  content
end

Examples

UiBibz::Ui::Core::Notifications::AlertBody.new.render

UiBibz::Ui::Core::Notifications::AlertBody.new do
  'Exemple'
end.render

Public Instance Methods

pre_render() click to toggle source

See UiBibz::Ui::Core::Component.initialize

# File lib/ui_bibz/ui/core/notifications/components/alert_body.rb, line 36
def pre_render
  tag(:hr) + content_tag(:p, content, html_options)
end

Private Instance Methods

component_html_classes() click to toggle source
# File lib/ui_bibz/ui/core/notifications/components/alert_body.rb, line 42
def component_html_classes
  'alert-body mb-0'
end