Sha256: 1d92fb9b18bef0c91b58e9db7f03e288c0f9948ed73890504322fc167ec0d686
Contents?: true
Size: 947 Bytes
Versions: 15
Compression:
Stored size: 947 Bytes
Contents
module UiBibz::Ui::Ux class Column < UiBibz::Ui::Core::Component attr_accessor :hidden, :link, :name, :data_index, :date_format, :sort, :format, :date_format, :count, :custom_sort, :parent, :id def initialize content = nil, options = nil, html_options = nil, &block super @data_index = @content @id = @options[:column_id] || @data_index @name = @options[:name] @link = @options[:link] # for show or edit action @order = @options[:order] @date_format = @options[:date_format] @sort = @options[:sort] @custom_sort = @options[:custom_sort] @parent = @options[:parent] @count = @options[:count] @format = @options[:format] @hidden = @options[:hidden] end def linkable? !@link.nil? end def order @order || 0 end def hidden? @hidden == true end end end
Version data entries
15 entries across 15 versions & 1 rubygems