属性值规范
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
类型名称:PropertyValueSpecification
扩展 Intangible
名称 |
类型 |
说明 |
defaultValue |
文字或事物 |
输入的默认值。对于需要字面量的属性,默认值为字面量值;对于需要对象的属性,此属性是对当前某个值的 ID 引用。 |
maxValue |
编号 |
某个特征或属性的上限值。 |
minValue |
编号 |
某个特征或属性的较低值。 |
多个值 |
Boolean |
属性是否允许多个值。默认值为 false。 |
只读值 |
Boolean |
属性是否可变。默认值为 false。如果为同样具有值的属性指定该属性,则其行为将类似于 HTML 表单中的“隐藏”输入。 |
步值 |
编号 |
stepValue 属性用于指明 PropertyValueSpecification 中值的预期(且必需)的粒度。 |
valueMaxLength |
编号 |
指定字面量值中允许的字符数范围。 |
valueMinLength |
编号 |
指定字面量值中允许的最小字符数范围。 |
valueName |
文本 |
表示将在网址模板和表单编码中使用的 PropertyValueSpecification 的名称,类似于 HTML 的输入@名称。 |
值模式 |
文本 |
指定用于根据 HTML 规范测试字面量值的正则表达式。 |
必需 |
Boolean |
是否必须填写该属性才能完成操作。默认值为 false。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# PropertyValueSpecification\n\nType name: [PropertyValueSpecification](/workspace/gmail/markup/reference/types/PropertyValueSpecification)\n\nExtends [Intangible](/workspace/gmail/markup/reference/types/Intangible)\n\n| Name | Type | Description |\n|----------------|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| defaultValue | [Text](/workspace/gmail/markup/reference/types/Text) or [Thing](/workspace/gmail/markup/reference/types/Thing) | The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values. |\n| maxValue | [Number](/workspace/gmail/markup/reference/types/Number) | The upper value of some characteristic or property. |\n| minValue | [Number](/workspace/gmail/markup/reference/types/Number) | The lower value of some characteristic or property. |\n| multipleValues | [Boolean](/workspace/gmail/markup/reference/types/Boolean) | Whether multiple values are allowed for the property. Default is false. |\n| readonlyValue | [Boolean](/workspace/gmail/markup/reference/types/Boolean) | Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a \"hidden\" input in an HTML form. |\n| stepValue | [Number](/workspace/gmail/markup/reference/types/Number) | The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. |\n| valueMaxLength | [Number](/workspace/gmail/markup/reference/types/Number) | Specifies the allowed range for number of characters in a literal value. |\n| valueMinLength | [Number](/workspace/gmail/markup/reference/types/Number) | Specifies the minimum allowed range for number of characters in a literal value. |\n| valueName | [Text](/workspace/gmail/markup/reference/types/Text) | Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's input@name. |\n| valuePattern | [Text](/workspace/gmail/markup/reference/types/Text) | Specifies a regular expression for testing literal values according to the HTML spec. |\n| valueRequired | [Boolean](/workspace/gmail/markup/reference/types/Boolean) | Whether the property must be filled in to complete the action. Default is false. |"]]