Sha256: c87c26cb496c2931f5f39caac9b2608c2b02e0cbffc92c45b68999b6e399c708
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module Lookbook class Tabs::DropdownTab::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/dropdown_tab/component.rb |
lookbook-1.0.0.beta.1 | app/components/lookbook/tabs/dropdown_tab/component.rb |