Sha256: 53fe5ce068e85e239de3fb1ecaa7a93330e0a0c2cf8239fc185ef3067beb4bb6

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Table
    module Components
      module Concerns
        module DisplaysData
          extend ActiveSupport::Concern

          def data_cell(wrapped_object)
            raise NotImplementedError, "#{self.class} must implement #data_cell"
          end

          def data_cell_attributes(wrapped_object)
            attributes = @attributes.dup
            attributes[:class] = tokens(
              attributes[:class],
              themed(:"align_#{alignment}"),
              themed(:"#{type}_column")
            )
            attributes
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phlexi-table-0.0.5 lib/phlexi/table/components/concerns/displays_data.rb
phlexi-table-0.0.4 lib/phlexi/table/components/concerns/displays_data.rb
phlexi-table-0.0.3 lib/phlexi/table/components/concerns/displays_data.rb