class OoxmlParser::FilterColumn
Class for `filterColumn` data The filterColumn collection identifies a particular column in the AutoFilter range and specifies filter information that has been applied to this column.
Attributes
custom_filters[R]
@return [CustomFilters] list of filters
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter/filter_column.rb, line 15 def initialize(parent: nil) @show_button = true super end
Public Instance Methods
parse(node)
click to toggle source
Parse FilterColumn
data @param [Nokogiri::XML:Element] node with FilterColumn
data @return [FilterColumn] value of FilterColumn
data
# File lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter/filter_column.rb, line 23 def parse(node) node.attributes.each do |key, value| case key when 'showButton' @show_button = attribute_enabled?(value) end end node.xpath('*').each do |node_child| case node_child.name when 'customFilters' @custom_filters = CustomFilters.new(parent: self).parse(node_child) end end self end