Skip to content

Commit

Permalink
Default i18n properties for columns
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmeet29 committed Jan 8, 2025
1 parent dd3143d commit 01bf359
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 01bf359

Please sign in to comment.