Highlights every other row using theme colors.
By usng the
@rowIndex keyword, the alternating style will be applied regardless of sorting and filtering.
By using the Office UI Fabric color classes for themes, we can ensure our format looks good in all themes including both light and dark as well as custom themes.
- None, this format will apply to any view!
|1.0||February 19, 2019||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.
Because this format is using the
additionalRowClass property, it can be combined with column formats to make a pretty compelling visualization:
Column Format samples shown above: