Class: Arara::DialogTitleComponent

Inherits:
ActionView::Component::Base
  • Object
show all
Includes:
BaseComponent
Defined in:
app/components/arara/dialog_title_component.rb

Instance Method Summary collapse

Methods included from BaseComponent

#default_data_controller, #default_html_tag, #html_class, #html_content, #html_data, #html_options, #html_tag, included

Constructor Details

#initialize(id:, **kw) ⇒ DialogTitleComponent

Returns a new instance of DialogTitleComponent.



7
8
9
# File 'app/components/arara/dialog_title_component.rb', line 7

def initialize(id:, **kw)
  super(tag: "h2", id: id, **kw)
end

Instance Method Details

#default_html_classObject



12
13
14
# File 'app/components/arara/dialog_title_component.rb', line 12

def default_html_class
  "mdc-dialog__title"
end