SAP / odata-vocabularies

SAP Vocabularies for semantic markup of structured data published via OData (www.odata.org) services.
https://sap.github.io/odata-vocabularies
Apache License 2.0
165 stars 60 forks source link

Merge cells in table columns #324

Closed BerSie closed 2 months ago

BerSie commented 2 months ago

Create an opportunity to define columns in a table where the cells are merged if the adjacent values are the same (in html rowSpan would be used). I decided to go as a starting point with an HTML5 collection of propertyPath that can be applied to UI.LineItem. Imo this new annotation makes only sense for UI.LineItem, and I didn't want to change the term itself. Other possibilities would be applying the annotation to properties or adding something to the UI.PresentationVariant.

BerSie commented 2 months ago

I suggest to annotate the UI.DataField record instead with a Boolean term:

<Record Type="UI.DataField">
  <Annotation Term="HTML5.PreferRowSpan" Bool="true" />

That sounds indeed interesting - thank you @HeikoTheissen ! The only thing that I'm not 100% convinced of is the name (esp. the "Prefer"). I will prepare a new commit.