class UiBibz::Ui::Core::Windows::Components::ModalHeader

Create a modal header

Attributes

Options

You can add HTML attributes using the html_options. You can pass arguments in options attribute:

Signatures

UiBibz::Ui::Core::ModalHeader.new(content, options = nil, html_options = nil)

UiBibz::Ui::Core::CarHeader.new(options = nil, html_options = nil) do
  content
end

Examples

UiBibz::Ui::Core::ModalHeader.new.render

UiBibz::Ui::Core::ModalHeader.new do
  'Exemple'
end.render

Public Instance Methods

pre_render() click to toggle source

Render html tag

# File lib/ui_bibz/ui/core/windows/components/modal_header.rb, line 37
def pre_render
  content_tag :div, html_options do
    concat content_tag :h5, glyph_and_content_html, class: 'modal-title'
    concat close_button_html
  end
end

Private Instance Methods

close_button_html() click to toggle source
# File lib/ui_bibz/ui/core/windows/components/modal_header.rb, line 50
def close_button_html
  content_tag :button, '', class: 'btn-close', 'data-bs-dismiss' => 'modal', 'aria-label' => 'Close'
end
component_html_classes() click to toggle source
# File lib/ui_bibz/ui/core/windows/components/modal_header.rb, line 46
def component_html_classes
  'modal-header'
end