Strikethrough on Completion
Classic task lists add a strikethrough style to the task name when the task is marked as completed. This sample shows how to achieve this in a modern list view.
If this is NOT the title field, then the
ms-fontColor-neutralPrimaryclass can be removed to ensure styles match.
- This format can be applied to any column type (but is intended for text fields)
- This format expects a Yes/No field with an internal name of
|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.