cancel
Showing results for 
Search instead for 
Did you mean: 

Problem loading .CSS file into a Worklist template 1.28

andres_levano
Explorer
0 Kudos

Hi gurus,

I'm trying to load a css file in order to customize some icons in my app. I was doing it ok in the previous version of the template Full Screen (deprecated) because it brings one StyleClass.css file and I just have to add my class.

In the new version I don't get that, and can't load it.

Any tip?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

andres_levano
Explorer
0 Kudos

Hi gurus,

I already solved it in the Worklist.controller.js with:

jQuery.sap.includeStyleSheet('/css/fullScreenStyles.css');

and works ok.

Thanks for your help and time!

Answers (2)

Answers (2)

jamie_cawley
Advisor
Advisor
0 Kudos

The component.js style can be defined with

includes : [ "css/style.css" ],

A project with the manifest.json can be done with

"sap.ui5": {

  "_version": "1.1.0",

  "resources":{

  "css": [{

                 "uri": "css/style.css"

             }]

  },

Regards,

Jamie

SAP - Technology RIG

Former Member
0 Kudos

Hi Andres,

In your SAPUI5 app you can override a tag example:

table td  {height: 50px !important;}
.myTable td {height: 50px !important;}
#myTable td {height: 50px !important;}


Also you can modify the theme by creating your own:

I hope it helps!

Kind regards,

César Felce