Labeled By Specification Property
Name
http://lynx-json.org/labledBy
Meaning
The labeledBy
property of a specification identifies another value that labels the current value.
Format Rules
- The
labeledBy
property is OPTIONAL. If present, its value MUST be the property name of the value that labels the value being described by the specification. - The property referenced by the
labeledBy
property SHOULD be described by alabel
hint.
Example
{
"label": "Comments on the Movie",
"comments": null,
"spec":{
"hints": [ "form" ],
"children": [
{
"name": "label",
"hints": [ "label", "text" ]
},
{
"name": "comments",
"hints": [ "text" ],
"input": true,
"labeledBy": "label"
}
]
}
}
Authoring Rules
None
Authoring Considerations
None
User Agent Rules
- When finding the value identified by the
labledBy
property, the user agent MUST use the process for finding values. - If the value referenced by the
labeledBy
property is not described by atext
hint, then the textual value of the label is the text content for the value.
User Agent Considerations
None