Sha256: a869358c697ab98a0d9b068c713b03ca87fe862987d311084fc9e80d6a930f38

Contents?: true

Size: 223 Bytes

Versions: 73

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

module Tables
  class TrComponent < ViewComponent::Base
    renders_many :tds, Tables::TdComponent

    def initialize(index: 0)
      @bg_color = 'bg-gray-50' if index.odd?
    end
  end
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
tybo-0.4.1 app/components/tables/tr_component.rb
tybo-0.4.0 app/components/tables/tr_component.rb
tybo-0.3.26 app/components/tables/tr_component.rb
tybo-0.3.24 app/components/tables/tr_component.rb
tybo-0.3.23 app/components/tables/tr_component.rb
tybo-0.3.22 app/components/tables/tr_component.rb
tybo-0.3.21 app/components/tables/tr_component.rb
tybo-0.3.20 app/components/tables/tr_component.rb
tybo-0.3.19 app/components/tables/tr_component.rb
tybo-0.3.18 app/components/tables/tr_component.rb
tybo-0.3.17 app/components/tables/tr_component.rb
tybo-0.3.16 app/components/tables/tr_component.rb
tybo-0.3.15 app/components/tables/tr_component.rb
tybo-0.3.14 app/components/tables/tr_component.rb
tybo-0.3.13 app/components/tables/tr_component.rb
tybo-0.3.12 app/components/tables/tr_component.rb
tybo-0.3.11 app/components/tables/tr_component.rb
tybo-0.3.10 app/components/tables/tr_component.rb
tybo-0.3.9 app/components/tables/tr_component.rb
tybo-0.3.8 app/components/tables/tr_component.rb