- Namespace:
- Redakt.ContentManagement.Annotations
- Assembly:
- Redakt.ContentManagement.dll
Uses a checkbox editor for this property in the Redakt back office.
        [AttributeUsage]
public sealed class ToggleAttribute: IContentPropertyAttribute
        - Inheritance:
- ObjectAttributeToggleAttribute
- Implements:
- IContentPropertyAttribute
Constructors
            Properties
            | OnLabel | Sets the toggle "on" label. | 
| OffLabel | Sets the toggle "off" label. | 
| CheckedValue | Sets the value to be saved when the checkbox is checked. Must be convertible to the property type. Defaults to true (bool), 1 (numeric types) or "on" (string). | 
| UncheckedValue | Sets the value to be saved when the checkbox is unchecked. Must be convertible to the property type. Defaults to false (bool), 0 (numeric types) or "off" (string). | 
Methods