Sha256: 9cf32b73b7ff525cbc3fccbea39e10c9b977815489d548a9003522384814f6a0
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
module Lookbook class Tabs::DropdownTab::Component < Lookbook::Component def initialize(ref:, label: nil, hotkey: nil, disabled: nil, position: 0, **html_attrs) @ref = ref @label = label @hotkey = hotkey @disabled = disabled @position = position super(**html_attrs) end def label @label.presence || content end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.0 | app/components/lookbook/tabs/dropdown_tab/component.rb |