Sha256: d77aca3f44b63cd216bd13ff5c4f52664a89af8a22f4b67f7a634a5ebeeaf114

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Table
    module Components
      class SelectionCell < Phlexi::Table::HTML
        def initialize(value)
          @value = value
        end

        def view_template
          input(type: :checkbox, value: @value, class: themed(:selection_checkbox))
        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/selection_cell.rb
phlexi-table-0.0.4 lib/phlexi/table/components/selection_cell.rb
phlexi-table-0.0.3 lib/phlexi/table/components/selection_cell.rb