Skip to content

Commit

Permalink
Added @UI.MultiLineText to value fields (#135)
Browse files Browse the repository at this point in the history
Hi @Sv7enNowitzki,

if a String field is currently modified and tracked via a change log,
which contains a long string, it is not properly rendered on the UI due
to the missing `@UI.MultiLineText` annotation. With that it basically
renders as before, just that after 4/5 lines a show more button appears
instead of rendering the whole value, which looks strange in a table.

BR,
Marten

Co-authored-by: Nick Josipovic <[email protected]>
  • Loading branch information
schiwekM and nkaputnik authored Nov 27, 2024
1 parent 3c826f2 commit 1d8f66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.cds
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ entity Changes {
key ID : UUID @UI.Hidden;
keys : String @title: '{i18n>Changes.keys}';
attribute : String @title: '{i18n>Changes.attribute}';
valueChangedFrom : String @title: '{i18n>Changes.valueChangedFrom}';
valueChangedTo : String @title: '{i18n>Changes.valueChangedTo}';
valueChangedFrom : String @title: '{i18n>Changes.valueChangedFrom}' @UI.MultiLineText;
valueChangedTo : String @title: '{i18n>Changes.valueChangedTo}' @UI.MultiLineText;

// Business meaningful object id
entityID : String @title: '{i18n>Changes.entityID}';
Expand Down

0 comments on commit 1d8f66c

Please sign in to comment.