Sha256: 37da601775285efbbc5275a18e9a00b7377398b735537de71f400960d2af1286

Contents?: true

Size: 437 Bytes

Versions: 66

Compression:

Stored size: 437 Bytes

Contents

module Lookbook
  class Tabs::Tab::Component < Lookbook::BaseComponent
    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

66 entries across 66 versions & 1 rubygems

Version Path
lookbook-2.0.0.beta.9 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.8 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.7 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.6 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.5 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.4 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.3 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.2 app/components/lookbook/tabs/tab/component.rb
lookbook-1.5.3 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.1 app/components/lookbook/tabs/tab/component.rb
lookbook-1.5.2 app/components/lookbook/tabs/tab/component.rb
lookbook-2.0.0.beta.0 app/components/lookbook/tabs/tab/component.rb
lookbook-1.5.1 app/components/lookbook/tabs/tab/component.rb
lookbook-1.5.0 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.5 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.4 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.3 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.2 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.1 app/components/lookbook/tabs/tab/component.rb
lookbook-1.4.0 app/components/lookbook/tabs/tab/component.rb