Skip to content

Commit

Permalink
Graduate HTML5.LinkTarget (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen authored Jan 27, 2025
1 parent 85d8c0c commit cd1ac2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion vocabularies/HTML5.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"$Kind": "Term",
"$Type": "HTML5.LinkTargetType",
"$DefaultValue": "_self",
"@Common.Experimental": true,
"@Core.Description": "Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)",
"@Core.LongDescription": "When the UI contains a link to the URL, it shall open as specified by this annotation.\n This can be achieved, for example, by giving the UI5 `sap.m.Link` element a corresponding `target` property.\n Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations."
},
Expand Down
14 changes: 7 additions & 7 deletions vocabularies/HTML5.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ The HTML5 vocabulary provides rendering hints for HTML5 clients
Term|Type|Description
:---|:---|:----------
[CssDefaults](HTML5.xml#L44)|[CssDefaultsType](#CssDefaultsType)|<a name="CssDefaults"></a>CSS definitions that may be used as defaults<br>This term can applied to e.g. UI.DataFieldAbstract records
[LinkTarget](HTML5.xml#L61) *([Experimental](Common.md#Experimental))*|[LinkTargetType](#LinkTargetType)|<a name="LinkTarget"></a>Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)<br>When the UI contains a link to the URL, it shall open as specified by this annotation. This can be achieved, for example, by giving the UI5 `sap.m.Link` element a corresponding `target` property. Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.
[RowSpanForDuplicateValues](HTML5.xml#L94) *([Experimental](Common.md#Experimental))*|[Tag](https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Core.V1.md#Tag)|<a name="RowSpanForDuplicateValues"></a>The annotated data field might use a rowSpan for adjacent duplicate values if used in a table.<br>In order to achieve a good user experience the respective columns should be sorted. Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.
[LinkTarget](HTML5.xml#L61)|[LinkTargetType](#LinkTargetType)|<a name="LinkTarget"></a>Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)<br>When the UI contains a link to the URL, it shall open as specified by this annotation. This can be achieved, for example, by giving the UI5 `sap.m.Link` element a corresponding `target` property. Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.
[RowSpanForDuplicateValues](HTML5.xml#L93) *([Experimental](Common.md#Experimental))*|[Tag](https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.Core.V1.md#Tag)|<a name="RowSpanForDuplicateValues"></a>The annotated data field might use a rowSpan for adjacent duplicate values if used in a table.<br>In order to achieve a good user experience the respective columns should be sorted. Applicability of this term is governed by [`Validation.ApplicableTerms`](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.html#ApplicableTerms) annotations.

<a name="CssDefaultsType"></a>
## [CssDefaultsType](HTML5.xml#L49)
Expand All @@ -23,14 +23,14 @@ Property|Type|Description
[width](HTML5.xml#L50)|String?|css: width, see https://www.w3.org/TR/CSS21/visudet.html#propdef-width<br>The property allows all values specified for the original css width property. Note that clients consuming this annotation may only support selected length units.

<a name="LinkTargetType"></a>
## [LinkTargetType](HTML5.xml#L70)
## [LinkTargetType](HTML5.xml#L69)
**Type:** String

The values are interpreted like the [target attribute](https://html.spec.whatwg.org/multipage/links.html#attr-hyperlink-target) in HTML

Allowed Value|Description
:------------|:----------
[_self](HTML5.xml#L74)|Open link in the current browsing context
[_blank](HTML5.xml#L78)|Open link in a new browsing context
[_parent](HTML5.xml#L82)|Open link in the parent browsing context
[_top](HTML5.xml#L86)|Open link in the top browsing context
[_self](HTML5.xml#L73)|Open link in the current browsing context
[_blank](HTML5.xml#L77)|Open link in a new browsing context
[_parent](HTML5.xml#L81)|Open link in the parent browsing context
[_top](HTML5.xml#L85)|Open link in the top browsing context
1 change: 0 additions & 1 deletion vocabularies/HTML5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
</ComplexType>

<Term Name="LinkTarget" Type="HTML5.LinkTargetType" Nullable="false" DefaultValue="_self">
<Annotation Term="Common.Experimental" />
<Annotation Term="Core.Description" String="Where to open a link for the annotated [URL](https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.html#IsURL)" />
<Annotation Term="Core.LongDescription">
<String>When the UI contains a link to the URL, it shall open as specified by this annotation.
Expand Down

0 comments on commit cd1ac2c

Please sign in to comment.