Select to view content in your preferred language

Where should other css files be placed?

5812
10
Jump to solution
06-18-2015 07:09 PM
AndrewTerwiel
Frequent Contributor

Where is the best place to put other css files, such as bootstrap.css etc? How does one make the custom widget refer to these stylesheets?

Putting them anywhere in the WAB folder and then doctoring the \client\stemapp\init.js by adding references in the resources object works, but feels like a hack.

resources = resources.concat([

      window.apiUrl + 'dojo/resources/dojo.css',

      window.apiUrl + 'dijit/themes/claro/claro.css',

      window.apiUrl + 'esri/css/esri.css',

      window.apiUrl + 'dojox/layout/resources/ResizeHandle.css',

      window.path + 'jimu.js/css/jimu.css',

      window.path + 'libs/jquery-2.1.1.min.js

]);

Does anyone have a more elegant solution?

0 Kudos
10 Replies
TerryGustafson
Frequent Contributor

Looks like the auto does not want to work but I put a fixed size of 7em and the !important made it override the dgrid.css.. Still not sure why auto size would not work as its listed for css as an option.

0 Kudos