Number Property

Simple Number Input 

A basic numeric input.

1simpleNumberProperty: number = 0;

Simple Number Property


Units Decorator 

Units can be displayed next to a numeric input using the @units decorator.

1@units("days")
2campaignDelay : number = 7;

Units


Enumerated Values 

A static list of options can be provided using the TypeScript String Literal type system. Doing so provides a dropdown menu with the options.

1simpleOption: 0 | 5 | 10;

For more complex dropdown examples, see Select Property.


See Also