Method: Writexlsx::Package::ConditionalFormat#write_cfvo

Defined in:
lib/write_xlsx/package/conditional_format.rb

#write_cfvo(type, value, criteria = nil) ⇒ Object

Write the <cfvo> element.



72
73
74
75
76
77
78
79
# File 'lib/write_xlsx/package/conditional_format.rb', line 72

def write_cfvo(type, value, criteria = nil)
  attributes = [['type', type]]
  attributes << ['val', value] if value

  attributes << ['gte', 0] if ptrue?(criteria)

  @writer.empty_tag('cfvo', attributes)
end