class UiBibz::Ui::Core::Notifications::Components::ToastBody
Create a alert body
Attributes¶ ↑
-
content
- Content of element -
options
- Options of element -
html_options
- Html Options of element
Options¶ ↑
You can add HTML attributes using the html_options
. You can pass arguments in options attribute:
Signatures¶ ↑
UiBibz::Ui::Core::Notifications::ToastBody.new(content, options = nil, html_options = nil) UiBibz::Ui::Core::Notifications::ToastBody.new(options = nil, html_options = nil) do content end
Examples¶ ↑
UiBibz::Ui::Core::Notifications::ToastBody.new.render UiBibz::Ui::Core::Notifications::ToastBody.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/toast_body.rb, line 36 def pre_render content_tag :div, content, html_options end
Private Instance Methods
component_html_classes()
click to toggle source
# File lib/ui_bibz/ui/core/notifications/components/toast_body.rb, line 42 def component_html_classes 'toast-body' end