Skip to content

Commit

Permalink
Merge pull request #83 from cap-js/SDMEXT-834/defaulti18nProperties
Browse files Browse the repository at this point in the history
[SDMEXT-834]/Default i18n properties for columns
  • Loading branch information
yashmeet29 authored Jan 9, 2025
2 parents dd3143d + 01bf359 commit 5182681
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions index.cds
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,26 @@ extend aspect Attachments with {

annotate Attachments with @UI:{
HeaderInfo: {
TypeName: '{i18n>Attachment}',
$Type : 'UI.HeaderInfoType',
TypeName : '{i18n>Attachment}',
TypeNamePlural: '{i18n>Attachments}',
},
LineItem: [
{Value: filename},
{Value: content},
{Value: createdAt},
{Value: createdBy},
{Value: note}
{Value: filename, @HTML5.CssDefaults: {width: '20%'}},
{Value: content, @HTML5.CssDefaults: {width: '20%'}},
{Value: createdAt, @HTML5.CssDefaults: {width: '20%'}},
{Value: createdBy, @HTML5.CssDefaults: {width: '20%'}},
{Value: note, @HTML5.CssDefaults: {width: '20%'}}
]
} {
url @readonly;
note @(title: '{i18n>Note}');
filename @(title: '{i18n>Filename}');
modifiedAt @(odata.etag: null);
content
@Core.ContentDisposition: { Filename: filename }
@Core.Immutable
@Core.ContentDisposition: { Filename: filename, Type: 'inline' }
@(title: '{i18n>Attachment}');
folderId @UI.Hidden;
mimeType @UI.Hidden;
status @UI.Hidden;
}

0 comments on commit 5182681

Please sign in to comment.