@@ -143,20 +143,28 @@ Currently, the following Conditional Types are supported for the following Reade
143143
144144MS Excel | Conditional Type | Readers | Writers
145145---|---|---|---
146- | Cell Value | Conditional::CONDITION_CELLIS | Xlsx | Xlsx, Xls
147- Specific Text | Conditional::CONDITION_CONTAINSTEXT | Xlsx | Xlsx
148- | Conditional::CONDITION_NOTCONTAINSTEXT | Xlsx | Xlsx
149- | Conditional::CONDITION_BEGINSWITH | Xlsx | Xlsx
150- | Conditional::CONDITION_ENDSWITH | Xlsx | Xlsx
151- Dates Occurring | Conditional::CONDITION_TIMEPERIOD | Xlsx | Xlsx
152- Blanks | Conditional::CONDITION_CONTAINSBLANKS | Xlsx | Xlsx
153- No Blanks | Conditional::CONDITION_NOTCONTAINSBLANKS | Xlsx | Xlsx
154- Errors | Conditional::CONDITION_CONTAINSERRORS | Xlsx | Xlsx
155- No Errors | Conditional::CONDITION_NOTCONTAINSERRORS | Xlsx | Xlsx
156- Duplicates/Unique | Conditional::CONDITION_DUPLICATES | Xlsx | Xlsx
157- | Conditional::CONDITION_UNIQUE | Xlsx | Xlsx
158- Use a formula | Conditional::CONDITION_EXPRESSION | Xlsx | Xlsx, Xls
159- Data Bars | Conditional::CONDITION_DATABAR | Xlsx | Xlsx
146+ | Cell Value | Conditional::CONDITION_CELLIS | Xlsx | Xlsx, Xls, Html
147+ Specific Text | Conditional::CONDITION_CONTAINSTEXT | Xlsx | Xlsx, Html
148+ | Conditional::CONDITION_NOTCONTAINSTEXT | Xlsx | Xlsx, Html
149+ | Conditional::CONDITION_BEGINSWITH | Xlsx | Xlsx, Html
150+ | Conditional::CONDITION_ENDSWITH | Xlsx | Xlsx, Html
151+ Dates Occurring | Conditional::CONDITION_TIMEPERIOD | Xlsx | Xlsx, Html
152+ Blanks | Conditional::CONDITION_CONTAINSBLANKS | Xlsx | Xlsx, Html
153+ No Blanks | Conditional::CONDITION_NOTCONTAINSBLANKS | Xlsx | Xlsx, Html
154+ Errors | Conditional::CONDITION_CONTAINSERRORS | Xlsx | Xlsx, Html
155+ No Errors | Conditional::CONDITION_NOTCONTAINSERRORS | Xlsx | Xlsx, Html
156+ Duplicates/Unique | Conditional::CONDITION_DUPLICATES | Xlsx | Xlsx, Html
157+ | Conditional::CONDITION_UNIQUE | Xlsx | Xlsx, Html
158+ Use a formula | Conditional::CONDITION_EXPRESSION | Xlsx | Xlsx, Xls, Html
159+ Data Bars | Conditional::CONDITION_DATABAR | Xlsx | Xlsx, Html
160+ Colour Scales | Conditional::COLORSCALE | Xlsx | Html
161+
162+ To enable conditional formatting for Html writer, use:
163+
164+ ``` php
165+ $writer = new HtmlWriter($spreadsheet);
166+ $writer->setConditionalFormatting(true);
167+ ```
160168
161169The following Conditional Types are currently not supported by any Readers or Writers:
162170
@@ -165,7 +173,6 @@ MS Excel | Conditional Type
165173Above/Below Average | ?
166174Top/Bottom Items | ?
167175Top/Bottom %age | ?
168- Colour Scales |?
169176Icon Sets | ?
170177
171178Unsupported types will by ignored by the Readers, and cannot be created through PHPSpreadsheet.
0 commit comments