Class: Matestack::Ui::Bootstrap::Components::Popover
- Inherits:
-
VueJsComponent
- Object
- VueJsComponent
- Matestack::Ui::Bootstrap::Components::Popover
- Defined in:
- app/concepts/matestack/ui/bootstrap/components/popover.rb
Constant Summary collapse
- DATA_ALIAS_ATTRIBUTES =
i[container delay selector html template fallback_placement]
- DATA_ATTRIBUTES =
i[tag content title text variant animation placement tabindex trigger boundary offset popper_config]
Instance Method Summary collapse
-
#response ⇒ Object
:tag # different element to apply: div, span, links, button, …
Instance Method Details
#response ⇒ Object
:tag # different element to apply: div, span, links, button, … :content, :title # popover title and content strings :animation # boolean, default true :variant, :text # button styling & text :placement # placement direction as string
46 47 48 49 50 51 52 53 54 55 56 |
# File 'app/concepts/matestack/ui/bootstrap/components/popover.rb', line 46 def response if tag.present? public_send(tag, popover_attributes) do content_partial end else bs_btn popover_attributes do content_partial end end end |