Sha256: a8556dfe0429d7f758c08c5e56d5b34f2106b8f62cc6a423e69f888e83672379
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
module UiBibz::Ui class Column attr_accessor :hidden, :link, :name, :data_index, :date_format, :sort, :format, :date_format, :count, :custom_sort, :parent def initialize args @args = args @link = args[:link] # show or edit @name = args[:name] @order = args[:order] @data_index = args[:data_index] @date_format = args[:date_format] @sort = args[:sort] @custom_sort = args[:custom_sort] @parent = args[:parent] @count = args[:count] @format = args[:format] @hidden = args[:hidden] end def linkable? !@link.nil? end def order @order || 0 end def hidden? @hidden == true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ui_bibz-1.0.0 | lib/ui_bibz/ui/table/components/column.rb |
ui_bibz-0.9.0 | lib/ui_bibz/ui/table/components/column.rb |