Sha256: 6d56aa265b1470089b7ffe5f6855ecad2ffbf9beaf067a5f3fb784318260a94a
Contents?: true
Size: 644 Bytes
Versions: 12
Compression:
Stored size: 644 Bytes
Contents
module Coprl 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
12 entries across 12 versions & 1 rubygems