This field allows providing a numeric value as page input.
Template Syntax
Below you can find some examples of how to use the component within a template.
Number field from 0 to 100, with increment step 10 and initial value 90.
<number-field name="quality"
label="Quality"
min="0"
max="100"
step="10"
value="90"
[mandatory]="true">
</number-field>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Number Field <number-field>
Label | The field label. Name: label Type: STRING | Optional
|
Label Position | The position of the label respect the number input field. Name: labelPosition Type: ENUM | Optional Values: none, left, top Default Value: left
|
Mandatory | The flag indicating whether the field value is mandatory. Name: mandatory Type: BOOLEAN | Optional
|
Max | The field maximum valid value. Name: max Type: INTEGER | Optional
|
Min | The field minimum valid value. Name: min Type: INTEGER | Optional
|
Name | The name used to reference the input field. Name: name Type: STRING | Optional
|
Property | The name of the thing property used to save the input value (optional). Name: property Type: PROPERTY | Optional
|
Step | The minimum value increment step. Name: step Type: FLOAT | Optional
|
Value | The initial value. Name: value Type: FLOAT | Optional
|
Rendering | |
CSS Class | The name(s) of the CSS class used to customize the widget layout. Name: class Type: STRING | Optional
|
Visibility Condition | The expression that allows you to reduce the visibility of the element. Name: *ngIf Type: STRING | Optional
|