This component extends the base input with spinner-specific behavior.
<rl-spinner max="" min="" step="" round-to-step="" decimals="" prefix="" postfix="" ng-disabled="" spinner-id="" ng-model="" validator="" label="" name=""> ... </rl-spinner>
Restricts the value of the spinner to a maximum of the specified value.
Restricts the value of the spinner to a minimum of the specified value.
Sets the amount by which the spinner increments when the user clicks the + or - or uses the spinner wheel.
If true, will force the spinner value to round to the nearest step increment.
Sets the precision that is allowed by the spinner value.
If specified, will be used to show an input group addon immediately before the textbox.
If specified, will be used to show an input group addon immediately after the textbox.
This option will set disabled
on the textarea if the expression inside it is truthy.
Example: ng-disabled="true"
will output <textarea disabled> ... </textarea>
See input for detail on the base options.
Sets the id of the input box element of the spinner.
A spinner with prefix, postfix, and spinner-id.
<rl-spinner prefix="$" postfix="/ hour" spinner-id="mySpinner" ng-model="test.number"></rl-spinner>
Output:
<span class="input-group-btn">
<button class="btn btn-default" type="button">-</button>
</span>
<span class="input-group-addon">
$
</span>
<input type="text" class="spinner form-control" id="mySpinner" ng-model="test.number" />
<span class="input-group-addon">
/ hour
</span>
<span class="input-group-btn">
<button class="btn btn-default" type="button">+</button>
</span>