Advanced features - going beyond basic usage

The Spinner component provides more features than just having increment and decrement controls. It can provide features such as value boundaries with min and max attributes, customized step factors (by default step factor is 1) using the step attribute, and number separators, such as decimalSeparator and thousandSeparator. The customized example of a Spinner would be as follows:

<p-spinner name="minmax" size="40" [(ngModel)]="customizedinput" [min]="0" [max]="100" [step]="0.50"
placeholder="Enter your input or use spinner controls"></p-spinner>

The Spinner will be displayed with button controls, as shown in the following screenshot:

Once the user input reaches min and max limits, the value cannot be changed by either controls or input.

The format of the input can be customized using the formatInput attribute.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.205.27