Sha256: 6bf3198d8a0f96f45336c6fb8f071981a4d4d5fd3ece9bfd506143f245f4ba68

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

module OpenXml
  module Docx
    module Elements
      class TableRow < Container
        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.10.6 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.5 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.4 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.3 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.2 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.1 lib/openxml/docx/elements/table_row.rb
openxml-docx-0.10.0 lib/openxml/docx/elements/table_row.rb