Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICheckboxMapping<T>

Represents true and false values for checkbox. Should be used when we don't want standard boolean values for the object's property.

example

 //
 @DorfObject()
 class TestDomainObject {
   @DorfCheckbox<string>({
     label: "Is smart?",
     mapping: {
       trueValue: "yes",
       falseValue: "no"
     },
     updateModelOnChange: true
   })
   private _smart: string;
 }
stable

Type parameters

  • T

Hierarchy

  • ICheckboxMapping

Index

Properties

Properties

falseValue

falseValue: T

Value assigned when checkbox is unchecked.

trueValue

trueValue: T

Value assigned when checkbox is checked.

Generated using TypeDoc