Conditional formatting - support for Conditional::CONDITION_CONTAINSBLANKS (#883)

Condition formating option was not supported. I unziped xlsx and found this formula to option blank field
This commit is contained in:
Przemysław Szustak 2019-04-15 21:32:22 +02:00 committed by Mark Baker
parent 8b589c4ef3
commit 0dd6e27d8f
1 changed files with 3 additions and 0 deletions

View File

@ -519,6 +519,9 @@ class Worksheet extends WriterPart
// Formula // Formula
$objWriter->writeElement('formula', $formula); $objWriter->writeElement('formula', $formula);
} }
} elseif ($conditional->getConditionType() == Conditional::CONDITION_CONTAINSBLANKS) {
// formula copied from ms xlsx xml source file
$objWriter->writeElement('formula', 'LEN(TRIM(' . $cellCoordinate . '))=0');
} }
$objWriter->endElement(); $objWriter->endElement();