cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements: Critically Color without icon in node.js

04-11-2022 10:38 AM
gwerner Participant
3035 views 6 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hello,

how is it possible to create a color in a field table without the icon.

I use the annotation Criticality in the Line Item of a table.

{
        $Type             : 'UI.DataField',
        Label             : '{@i18n>inactivity}',
        Value             : totalValue,
        Criticality       : #Positive,
        ![@UI.Importance] : #Low,
        ![@HTML5.CssDefaults] : {width : '4.813rem' },
      },

....

But there is a icon shown, can I use it without that. Or exists an other annotation for colors?

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

gwerner
Participant

Hi all,

there is an annotation for that.

   CriticalityRepresentation : #WithoutIcon,

That solves my problem

kind regards

Gunter

onkelhip
Discoverer
0 Likes

Almost right, but it wont work because of the big 'C' and the missing '_'.

This works:

criticalityRepresentation: #WITHOUT_ICON

Answers (2)

Answers (2)

gwerner
Participant
0 Likes

Hi All,

thank you for your fast answers. The color ist shown, but..

But my challenge is to avoid the icon.

Kind regards

Gunter

ThorstenHoefer
Active Contributor
0 Likes