You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] a bug report
- [x] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
I want some styling to be applied if a cell does NOT contain a specified string.
Which versions of PhpSpreadsheet and PHP are affected?
All.
Explanation
In the above code example I want to style the text in red and bold if the cell does NOT contain the text "published". But this is not possible. At least if you generate an XSLX file.
The OOXML requires the conditional formatting for this case to be defined like this:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.
This is:
What is the expected behavior?
I want some styling to be applied if a cell does NOT contain a specified string.
What is the current behavior?
Currently it is not supported.
What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?
All.
Explanation
In the above code example I want to style the text in red and bold if the cell does NOT contain the text "published". But this is not possible. At least if you generate an XSLX file.
The OOXML requires the conditional formatting for this case to be defined like this:
But there is no condition type available to get
notContainsText
. So this has to be added.The text was updated successfully, but these errors were encountered: