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

[AttributeUsageAttribute(AttributeTargets.Property)]
public sealed class CheckboxAttribute: IContentPropertyAttribute
Inheritance:
ObjectAttributeCheckboxAttribute
Implements:
IContentPropertyAttribute

Constructors

CheckboxAttribute()

Properties

Label Sets the checkbox label. Automatically hides the normal field label by default.
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)