Sha256: 766c73d826cc7000a82f12c2642711496aa7aa8f429065ff173271b90cfc3dc3
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
module Lookbook class Tabs::Tab::Component < Lookbook::Component def initialize(name:, label: nil, hotkey: nil, disabled: nil, position: 0, theme: :toolbar, **html_attrs) @name = name @label = label @hotkey = hotkey @disabled = disabled @position = position @theme = theme super(**html_attrs) end def label @label.presence || content || @name.titleize end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.2 | app/components/lookbook/tabs/tab/component.rb |
lookbook-1.0.0.beta.1 | app/components/lookbook/tabs/tab/component.rb |