PropertyValueSpecification
Type name: PropertyValueSpecification
Extends Intangible
Name |
Type |
Description |
defaultValue |
Text or 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. |
maxValue |
Number |
The upper value of some characteristic or property. |
minValue |
Number |
The lower value of some characteristic or property. |
multipleValues |
Boolean |
Whether multiple values are allowed for the property. Default is false. |
readonlyValue |
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. |
stepValue |
Number |
The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. |
valueMaxLength |
Number |
Specifies the allowed range for number of characters in a literal value. |
valueMinLength |
Number |
Specifies the minimum allowed range for number of characters in a literal value. |
valueName |
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. |
valuePattern |
Text |
Specifies a regular expression for testing literal values according to the HTML spec. |
valueRequired |
Boolean |
Whether the property must be filled in to complete the action. Default is false. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["`PropertyValueSpecification` extends `Intangible` and describes the metadata of a property's value like default, minimum, and maximum values."],["It specifies constraints on the property value such as allowed data types, length, and whether it's required or read-only."],["This type helps define how property values should be handled and validated within a given context, like a web form or structured data."],["Properties like `multipleValues`, `readonlyValue`, and `valueRequired` provide control over the behavior and presentation of the associated property."],["Developers can use attributes like `valueName` and `valuePattern` to manage URL templates, form encoding, and data validation according to specific requirements."]]],["`PropertyValueSpecification` defines properties for input values. It includes `defaultValue` (text or thing), `maxValue`, and `minValue` (numbers). `multipleValues`, `readonlyValue`, and `valueRequired` are booleans that manage input behavior. `stepValue`, `valueMaxLength`, and `valueMinLength` control numerical and textual granularity and length. The `valueName` identifies the specification and the `valuePattern` tests literal values using a regular expression. The content also specifies the type of each property.\n"]]