fiori element cds view 可以用annotation实现文本和ID同框。
1 2 3 4 |
@UI.textArrangement: #TEXT_LAST @UI.textArrangement: #TEXT_ONLY @UI.textArrangement: #TEXT_FIRST @UI.textArrangement: #TEXT_SEPARATE |
You can define a text using the Common.Text
annotation on a property.
Application developers can define the arrangement of a code or ID value and its text using the UI.TextArrangement
annotation.
TextArrangement | Display Format |
---|---|
TextFirst – (default value) | ABC (A1) |
TextLast | A1 (ABC) |
TextOnly | ABC |
TextSeparate | A1 |
实现效果

官网文档
https://sapui5.hana.ondemand.com/sdk/#/topic/080886d8d4af4ac6a68a476beab17da3.html