Class: Matestack::Ui::Bootstrap::Components::Tooltip

Inherits:
VueJsComponent
  • Object
show all
Defined in:
app/concepts/matestack/ui/bootstrap/components/tooltip.rb

Constant Summary collapse

DATA_ALIAS_ATTRIBUTES =
i[container delay selector html template fallback_placement]
DATA_ATTRIBUTES =
i[text variant animation placement tabindex trigger boundary offset popper_config]

Instance Method Summary collapse

Instance Method Details

#responseObject



21
22
23
24
25
26
27
28
29
30
31
32
# File 'app/concepts/matestack/ui/bootstrap/components/tooltip.rb', line 21

def response
  case tag
  when :div
    div tooltip_attributes do
      yield_components
    end
  else
    span tooltip_attributes do
      yield_components
    end
  end
end