This sample uses Office UI Fabric icons and theme classes to provide a better visualization for Yes/No fields while respecting theme colors.
The icons and theme colors are conditionally applied based on the field's value. By using the
ms-fontColor classes, the icon works well in both light and dark themes (as well as custom themes). In addition, regardless of value, the
ms-fontSize-l class is applied to make the icon large enough to stand on its own.
- This format can be applied to a Yes/No column
|1.0||August 18, 2018||Initial release|
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
An additional version using Abstract Tree Syntax (AST) is also provided for environments where the Excel-style expressions are not supported.