Sha256: a3b58996e4848fb0183027161391df483cbb83a32d5a79c7120f800897acddd4

Contents?: true

Size: 402 Bytes

Versions: 48

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module UiBibz::Ui::Ux::Tables
  class Columns
    def initialize(columns = nil)
      @columns = columns || []
    end

    # Add column in table
    def column(data_index = nil, options = nil, html_options = nil, &block)
      @columns << Column.new(data_index, options, html_options, &block)
    end

    # Get all columns
    def list
      @columns
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ui_bibz-3.0.13 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.12 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.11 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.10 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.9 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.8 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.7 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.6 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.5 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.4 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.3 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.2 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.1 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta19 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta18 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta17 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta16 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta15 lib/ui_bibz/ui/ux/tables/components/columns.rb
ui_bibz-3.0.0.beta14 lib/ui_bibz/ui/ux/tables/components/columns.rb