The numeric editable is like a normal textfield but with special configurations for numbers.
Configuration
| Name |
Type |
Description |
|---|---|---|
| width |
integer |
Width of the field in pixel |
| minValue |
float |
Define a minimum value |
| maxValue |
float |
Define a maximum value |
You can use every configuration property of Ext.ux.form.SpinnerField to customize the numeric widget in editmode.
Accessable Properties
| Name |
Type |
Description |
|---|---|---|
| number |
float |
Value of the numeric field, this is useful to get the value even in editmode |
Example
// Basic usage <?php echo $this->numeric("myNumber"); ?> // Advanced usage <?php echo $this->numeric("myNumber", array( "width" => 300, "minValue" => 0, "maxValue" => 100, "decimalPrecision" => 0 )); ?>