Class: Uniword::Wordprocessingml::TableRowProperties

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/uniword/wordprocessingml/table_row_properties.rb

Overview

Table row properties

Generated from OOXML schema: wordprocessingml.yml Element: <w:trPr>

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TableRowProperties

Returns a new instance of TableRowProperties.



39
40
41
42
43
44
45
46
# File 'lib/uniword/wordprocessingml/table_row_properties.rb', line 39

def initialize(attrs = {})
  # Handle table_header: keyword for docx-js API compatibility
  if attrs.key?(:table_header)
    val = attrs.delete(:table_header)
    attrs[:tbl_header] = coerce_to_val_int(val)
  end
  super
end