AnsweredAssumed Answered

Where should other css files be placed?

Question asked by alterwiel on Jun 18, 2015
Latest reply on Aug 5, 2015 by gus6177

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?

Outcomes