Class: Ui::Popover::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/uikit_rails/templates/components/popover/component.rb

Overview

Floating content panel triggered by click.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#alignObject (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_attrsObject (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

#sideObject (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