Class: UI::AlertDialogTitle
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::AlertDialogTitle
- Includes:
- AlertDialogTitleBehavior
- Defined in:
- app/components/ui/alert_dialog_title.rb
Overview
Title - Phlex implementation
Title text for the alert dialog. Uses AlertDialogTitleBehavior module for shared styling logic.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ AlertDialogTitle
constructor
A new instance of AlertDialogTitle.
- #view_template(&block) ⇒ Object
Methods included from AlertDialogTitleBehavior
#alert_dialog_title_base_classes, #alert_dialog_title_classes, #alert_dialog_title_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ AlertDialogTitle
Returns a new instance of AlertDialogTitle.
15 16 17 18 |
# File 'app/components/ui/alert_dialog_title.rb', line 15 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
20 21 22 23 24 |
# File 'app/components/ui/alert_dialog_title.rb', line 20 def view_template(&block) h2(**alert_dialog_title_html_attributes) do yield if block_given? end end |