Sha256: b335fa0f354d6ee0c6b129f292c61b8dc866c2c2c816f0175ddbc0310c46bfc1

Contents?: true

Size: 978 Bytes

Versions: 7

Compression:

Stored size: 978 Bytes

Contents

module OpenXml
  module Docx
    module Elements
      class TableRow < OpenXml::Docx::Element
        include HasChildren, HasProperties

        tag :tr

        with_namespace :w do
          attribute :rsidDel, expects: :valid_long_hex
          attribute :rsidR, expects: :valid_long_hex
          attribute :rsidRPr, expects: :valid_long_hex
          attribute :risdTr, expects: :valid_long_hex
        end

        value_property :cant_split
        value_property :div_id
        value_property :grid_after
        value_property :grid_before
        value_property :hidden
        value_property :alignment
        value_property :table_header
        value_property :v_align

        property :conditional_formatting
        property :table_cell_spacing
        property :table_row_height
        property :w_after
        property :w_before

      private

        def valid_long_hex(value)
          value =~ /^[0-9a-f]+$/i
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openxml-docx-0.11.5 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.4 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.3 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.2 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.1 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.0 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.11.0.rc lib/openxml/docx/elements/table_row.rb