Class: Ui::Popover::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::Popover::Component
- Defined in:
- lib/uikit_rails/templates/components/popover/component.rb
Overview
Floating content panel triggered by click.
Instance Attribute Summary collapse
-
#align ⇒ Object
readonly
Returns the value of attribute align.
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
Instance Method Summary collapse
-
#initialize(align: :center, side: :bottom, **html_attrs) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(align: :center, side: :bottom, **html_attrs) ⇒ Component
Returns a new instance of Component.
11 12 13 14 15 16 |
# File 'lib/uikit_rails/templates/components/popover/component.rb', line 11 def initialize(align: :center, side: :bottom, **html_attrs) @align = align.to_sym @side = side.to_sym @html_attrs = html_attrs super() end |
Instance Attribute Details
#align ⇒ Object (readonly)
Returns the value of attribute align.
9 10 11 |
# File 'lib/uikit_rails/templates/components/popover/component.rb', line 9 def align @align end |
#html_attrs ⇒ Object (readonly)
Returns the value of attribute html_attrs.
9 10 11 |
# File 'lib/uikit_rails/templates/components/popover/component.rb', line 9 def html_attrs @html_attrs end |
#side ⇒ Object (readonly)
Returns the value of attribute side.
9 10 11 |
# File 'lib/uikit_rails/templates/components/popover/component.rb', line 9 def side @side end |