Class: Bootstrap5Helper::Dropend

Inherits:
Overlay show all
Defined in:
lib/bootstrap5_helper/dropend.rb

Overview

Builds a Dropdown component that can be used in other components.

Instance Method Summary collapse

Methods inherited from Overlay

#button, #caret, #menu, #to_s

Methods inherited from Component

#capture, #concat, #config, #content_tag, #parse_arguments, #parse_context_or_options, #parse_tag_or_options, #parse_text_or_options, #uuid

Constructor Details

#initialize(template, tag, opts) ⇒ Dropend #initialize(template, opts) ⇒ Dropend

Class constructor

Overloads:

  • #initialize(template, tag, opts) ⇒ Dropend

    Parameters:

    • template (ActionView)
    • tag (Symbol|String)
      • The HTML element to use to wrap the component.

    • opts (Hash)

    Options Hash (opts):

    • :id (String)
    • :class (String)
    • :data (Hash)
    • :split (Boolea)
    • :centered (Boolean)
  • #initialize(template, opts) ⇒ Dropend

    Parameters:

    • template (ActionView)
    • opts (Hash)

    Options Hash (opts):

    • :id (String)
    • :class (String)
    • :data (Hash)
    • :split (Boolea)
    • :centered (Boolean)


29
30
31
32
# File 'lib/bootstrap5_helper/dropend.rb', line 29

def initialize(template, *tag_or_options, &block)
  super(template, *tag_or_options, &block)
  @type = :dropend
end