Module: Para::MarkupHelper

Defined in:
app/helpers/para/markup_helper.rb

Instance Method Summary collapse

Instance Method Details

#alert(message, options = {}, &block) ⇒ Object



3
4
5
# File 'app/helpers/para/markup_helper.rb', line 3

def alert(message, options = {}, &block)
  Para::Markup::Alert.new(self).container(message, options, &block)
end


15
16
17
# File 'app/helpers/para/markup_helper.rb', line 15

def modal(options = {}, &block)
  Para::Markup::Modal.new(self).container(options, &block)
end

#panel(options = {}, &block) ⇒ Object



11
12
13
# File 'app/helpers/para/markup_helper.rb', line 11

def panel(options = {}, &block)
  Para::Markup::Panel.new(self).container(options, &block)
end

#resources_table(component:, **options, &block) ⇒ Object



7
8
9
# File 'app/helpers/para/markup_helper.rb', line 7

def resources_table(component:, **options, &block)
  Para::Markup::ResourcesTable.new(component, self).container(options, &block)
end