Sha256: 37599739e99f2c722d78c0663d16826202e5e83077bb0995eebd481fc4b98c69
Contents?: true
Size: 706 Bytes
Versions: 14
Compression:
Stored size: 706 Bytes
Contents
module Voom module Presenters module DSL module Components class Tooltip < Base attr_reader :position def initialize(**attribs_, &block) super(type: :tooltip, context: context, **attribs_, &block) @position = attribs.delete(:position){ :left } self.text(attribs.delete(:text)) if attribs.key?(:text) expand! end def text(*text, **attribs, &block) return @text if locked? @text = Components::Typography.new(parent: self, type: :text, text: text, context: context, **attribs, &block) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems