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
labeledByproperty 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
labeledByproperty SHOULD be described by alabelhint.
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
labledByproperty, the user agent MUST use the process for finding values. - If the value referenced by the
labeledByproperty is not described by atexthint, then the textual value of the label is the text content for the value.
User Agent Considerations
None