Module: Para::MarkupHelper
- Defined in:
- app/helpers/para/markup_helper.rb
Instance Method Summary collapse
- #alert(message, options = {}, &block) ⇒ Object
- #modal(options = {}, &block) ⇒ Object
- #panel(options = {}, &block) ⇒ Object
- #resources_table(component:, **options, &block) ⇒ Object
Instance Method Details
#alert(message, options = {}, &block) ⇒ Object
3 4 5 |
# File 'app/helpers/para/markup_helper.rb', line 3 def alert(, = {}, &block) Para::Markup::Alert.new(self).container(, , &block) end |
#modal(options = {}, &block) ⇒ Object
15 16 17 |
# File 'app/helpers/para/markup_helper.rb', line 15 def modal( = {}, &block) Para::Markup::Modal.new(self).container(, &block) end |
#panel(options = {}, &block) ⇒ Object
11 12 13 |
# File 'app/helpers/para/markup_helper.rb', line 11 def panel( = {}, &block) Para::Markup::Panel.new(self).container(, &block) end |
#resources_table(component:, **options, &block) ⇒ Object
7 8 9 |
# File 'app/helpers/para/markup_helper.rb', line 7 def resources_table(component:, **, &block) Para::Markup::ResourcesTable.new(component, self).container(, &block) end |