Class: Matestack::Ui::Bootstrap::Components::Popover
- Inherits:
-
BaseVueJsComponent
- Object
- VueJsComponent
- BaseVueJsComponent
- Matestack::Ui::Bootstrap::Components::Popover
- Defined in:
- lib/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 variant animation placement tabindex trigger boundary offset popper_config]
Instance Method Summary collapse
-
#response(&block) ⇒ Object
:tag # different element to apply: div, span, links, button, …
Methods included from Registry
#bs_accordion, #bs_alert, #bs_avatar, #bs_badge, #bs_breadcrumb, #bs_btn, #bs_btn_group, #bs_card, #bs_carousel, #bs_close, #bs_col, #bs_collapse, #bs_container, #bs_dropdown, #bs_figure, #bs_form_checkbox, #bs_form_input, #bs_form_radio, #bs_form_select, #bs_form_submit, #bs_form_switch, #bs_icon, #bs_list_group, #bs_modal, #bs_navbar, #bs_page_heading, #bs_pagination, #bs_popover, #bs_progress, #bs_row, #bs_scrollspy, #bs_section_card, #bs_sidebar, #bs_smart_collection, #bs_spinner, #bs_tab_nav, #bs_tab_nav_content, #bs_toast, #bs_tooltip
Instance Method Details
#response(&block) ⇒ 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
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/matestack/ui/bootstrap/components/popover.rb', line 48 def response(&block) if context.tag.present? public_send(context.tag, popover_attributes) do content_partial(&block) end else bs_btn popover_attributes do content_partial(&block) end end end |