Sha256: 5ac4f5a57ca63e92c3f568cb4180d0bfe03015f91988a924d8db719f2146c468
Contents?: true
Size: 643 Bytes
Versions: 6
Compression:
Stored size: 643 Bytes
Contents
module Voom module Presenters module DSL module Components class IconBase < EventBase include Mixins::Tooltips attr_reader :icon, :color, :size, :position, :hidden def initialize(**attribs_, &block) super(type: :icon, **attribs_, &block) @icon = attribs.delete(:icon) @color = attribs.delete(:color) @size = attribs.delete(:size){ :default } @position = Array(attribs.delete(:position)).compact @hidden = attribs.delete(:hidden) {false} end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems