在Joomla!-Forms中有数字输入的步进属性吗?此输入类型的文档站点还不包含任何答案在这里输入链接描述
我需要步长为0.01的十进制数
您应该检查文件/libraries/joomla/form/fields/number.php,您可以看到有一些参数传递给表单字段用于此目的:
/**
* The form field type.
*
* @var string
* @since 3.2
*/
protected $type = 'Number';
/**
* The allowable maximum value of the field.
*
* @var float
* @since 3.2
*/
protected $max = null;
/**
* The allowable minimum value of the field.
*
* @var float
* @since 3.2
*/
protected $min = null;
/**
* The step by which value of the field increased or decreased.
*
* @var float
* @since 3.2
*/
protected $step = 0;