a suite of UI Components for development of web apps
If you have any questions, don't hesitate to contact us at support@lidorsystems.com
Advanced User Interface Controls and Components
IntegralUI NumericUpDown is a native web component for Angular, React and Vue that displays a numeric value and allows you to change it within a range of defined minimum and maximum values. In this article, you will find general information about the color picker component, including its properties, events and methods that you can use.
If you have any questions, don't hesitate to contact us at support@lidorsystems.com
In this example, you can choose the display mode of the Numeric component. There are three options:
Using the arrow buttons you can increase or decrease the numeric value within the specified range of min and max values. Bu default min is set to 0 and max is set to 100.
You can also change the numeric value with mouse wheel.
To use the NumericUpDown component you need to do the following:
public ctrlDisplayMode: IntegralUINumericDisplayMode = IntegralUINumericDisplayMode.InBound;
public ctrlValue: number = 30;
<iui-numeric-updown [(ngModel)]="ctrlValue" [displayMode]="ctrlDisplayMode"></iui-numeric-updown>
By default, NumericUpDown component shows the input box on left followed by up and down arrow buttons on the right side. You can increase or decrease the numeric value by clicking on the arrow buttons or using the mouse wheel. The range of numeric value is determined by the min and max properties, which by default are set to 0 and 100 accordingly. You can change this in your code:
NumericUpDown component is also usable as part of other components. For example, you can add a numeic editor to cells in the Grid or TreeGrid component.
You can use the following properties to change the appearance and behavior of the NumericUpDown component:
Using the above properties, you can customize the NumericUpDown component in a way best suited for your application.
Here is a list of available events:
When the numeric value changes, the valueChanged event is fired. You can handle this event in your code and add specific action based on the event data.
numericValueChanged(e: any){
console.log("Numeric value changes to: ", e.value);
}
<iui-numeric-updown [(ngModel)]="ctrlValue" (valueChanged)="numericValueChanged($event)"></iui-numeric-updown>
The following public methods are available:
Using these methods, you can manually change the numeric value from code.
The appearance of NumericUpDown component is determined by a set of CSS classes. Using the controlStyle property, you can override these classes by providing your own. This property can accept an object in following format:
numericCtrlStyle = {
general: {
disabled: 'iui-numeric-disabled',
focused: 'iui-numeric-focused',
normal: 'iui-numeric',
hovered: 'iui-numeric-hovered',
selected: 'iui-numeric-selected'
},
content: {
disabled: 'iui-numeric-content-disabled',
focused: 'iui-numeric-content-focused',
normal: 'iui-numeric-content',
hovered: 'iui-numeric-content-hovered',
selected: 'iui-numeric-content-selected'
}
}
IntegralUI NumericUpDown is a web component that you can use in Angular, React and Vue. It displays a numeric value and allows you to change it within a specified range of min/max values. You can customize the component appearance and behavior using different properties and CSS styles.
The numeric component is also usable as part of other components or in Angular Forms.
The NumericUpDown component is part of IntegralUI Web.