Module: Voom::Presenters::DSL::Components::Mixins::Tooltips

Included in:
Avatar, Button, Chip, Icon, IconBase, Image, Input, Lists::Line, Voom::Presenters::DSL::Components::Menu::Item, Table::Row::Column, Typography
Defined in:
lib/voom/presenters/dsl/components/mixins/tooltips.rb

Instance Method Summary collapse

Instance Method Details

#tooltip(text = nil, **attribs, &block) ⇒ Object



7
8
9
10
11
# File 'lib/voom/presenters/dsl/components/mixins/tooltips.rb', line 7

def tooltip(text= nil, **attribs, &block)
  return @tooltip if locked?
  @tooltip = Components::Tooltip.new(parent: self, text: text,
                                     **attribs, &block)
end