首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Step-attribute JForm字段类型编号

Step-attribute JForm字段类型编号
EN

Stack Overflow用户
提问于 2015-05-26 04:38:29
回答 1查看 209关注 0票数 0

在Joomla!-Forms中,数字输入有步骤属性吗?此输入类型的文档站点尚未包含任何答案enter link description here

我需要第0.01步的十进制数

EN

回答 1

Stack Overflow用户

发布于 2015-07-06 11:32:03

您应该检查文件/libraries/joomla/ form / field /num.php,您可以看到有一些参数需要传递给表单域以实现此目的:

代码语言:javascript
复制
/**
 * 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;
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30445715

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档