lib/tabulatr/renderer/column.rb in tabulatr2-0.9.12 vs lib/tabulatr/renderer/column.rb in tabulatr2-0.9.13
- old
+ new
@@ -23,11 +23,11 @@
class Tabulatr::Renderer::Column
include ActiveModel::Model
attr_accessor *%i{name header width align valign wrap type th_html filter_html
- filter filter_width range_filter_symbol
+ filter_label filter filter_width range_filter_symbol
sortable table_name block klass format map classes cell_style header_style
sort_sql filter_sql output}
def self.from(
name: nil,
@@ -38,10 +38,11 @@
align: false,
valign: false,
wrap: nil,
th_html: false,
filter_html: false,
+ filter_label: nil,
filter: true,
sortable: true,
format: nil,
map: true,
klass: nil,
@@ -60,10 +61,11 @@
align: align,
valign: valign,
wrap: wrap,
th_html: th_html,
filter_html: filter_html,
+ filter_label: filter_label,
filter: filter,
sortable: sortable,
format: format,
map: map,
klass: klass,
@@ -83,9 +85,10 @@
self.align = hash[:align] || self.align
self.valign = hash[:valign] || self.valign
self.wrap = hash[:wrap] || self.wrap
self.th_html = hash[:th_html] || self.th_html
self.filter_html = hash[:filter_html] || self.filter_html
+ self.filter_label = hash[:filter_label] || self.filter_label
self.filter = hash[:filter] || self.filter
self.sortable = hash[:sortable] || self.sortable
self.format = hash[:format] || self.format
self.map = hash[:map] || self.map
self.th_html = hash[:th_html] || self.th_html