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;