Sha256: d0d9a80a8b66854e8c4b3f329ca6377ced87d1cf4e3808d9d3d754c1480fc07c

Contents?: true

Size: 521 Bytes

Versions: 7

Compression:

Stored size: 521 Bytes

Contents

module LatoCore

  class Elements::Table::Head::Cell < Cell

    @@requested_args = [:labels]

    @@default_args = {
      color: false
    }

    def initialize(args = {})
      @args = validate_args(
        args: args,
        requested_args: @@requested_args,
        default_args: @@default_args
      )

      set_conditions
    end

    def show
      render 'show.html'
    end

    private

      def set_conditions
        @color_class = @args[:color] ? 'elements-table__head--color' : ''
      end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lato_core-2.2.2 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.2.0 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.1.4 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.1.3 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.1.2 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.1.1 app/cells/lato_core/elements/table/head/cell.rb
lato_core-2.1 app/cells/lato_core/elements/table/head/cell.rb