module UiBibz::Helpers::Ui::Core::NotificationsHelper
Public Instance Methods
ui_alert(content = nil, options = nil, html_options = nil, &block)
click to toggle source
Alert Component
options
(Hash) html_options
(Hash)
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 9 def ui_alert(content = nil, options = nil, html_options = nil, &block) if tapped?(block) UiBibz::Ui::Core::Notifications::Alert.new(content, options, html_options).tap(&block).render else UiBibz::Ui::Core::Notifications::Alert.new(content, options, html_options, &block).render end end
ui_badge(content = nil, options = nil, html_options = nil, &block)
click to toggle source
Badge (Label) Component
options
(Hash) html_options
(Hash)
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 22 def ui_badge(content = nil, options = nil, html_options = nil, &block) UiBibz::Ui::Core::Notifications::Badge.new(content, options, html_options, &block).render end
ui_progress_bar(percentage = nil, options = nil, html_options = nil, &block)
click to toggle source
ProgressBar Component
options
(Hash) html_options
(Hash)
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 30 def ui_progress_bar(percentage = nil, options = nil, html_options = nil, &block) if tapped?(block) UiBibz::Ui::Core::Notifications::ProgressBar.new(percentage, options, html_options).tap(&block).render else UiBibz::Ui::Core::Notifications::ProgressBar.new(percentage, options, html_options, &block).render end end
ui_spinner(content = nil, options = nil, html_options = nil, &block)
click to toggle source
Spinner Component
options
(Hash) html_options
(Hash)
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 55 def ui_spinner(content = nil, options = nil, html_options = nil, &block) UiBibz::Ui::Core::Notifications::Spinner.new(content, options, html_options, &block).render end
ui_toast(content = nil, options = nil, html_options = nil, &block)
click to toggle source
Toast Component
options
(Hash) html_options
(Hash)
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 42 def ui_toast(content = nil, options = nil, html_options = nil, &block) if tapped?(block) UiBibz::Ui::Core::Notifications::Toast.new(content, options, html_options).tap(&block).render else UiBibz::Ui::Core::Notifications::Toast.new(content, options, html_options, &block).render end end
Private Instance Methods
tapped?(block)
click to toggle source
# File lib/ui_bibz/helpers/ui/core/notifications_helper.rb, line 61 def tapped?(block) UiBibz::Utils::Screwdriver.tapped?(block) end