Sha256: 9c1c9506f977237969f66b568fd9610885c1073937841d6b9dc865907e25cd0f
Contents?: true
Size: 653 Bytes
Versions: 12
Compression:
Stored size: 653 Bytes
Contents
module Coprl module Presenters module DSL module Components class Tooltip < Base attr_reader :position def initialize(**attribs_, &block) super(type: :tooltip, **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, **attribs, &block) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems