Uses a checkbox editor for this property in the Redakt back office.

[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class ToggleAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeToggleAttribute
Implements:
IContentPropertyAttribute

Constructors

ToggleAttribute()

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

Apply(ContentPropertyDefinition)