开发者

Loading Dojo dijit CSS from CDN

开发者 https://www.devze.com 2023-01-01 08:44 出处:网络
I am quite new to dojo world. Using dojo with google\'s CDN is well and Fine. But while using dijit just dojo.requ开发者_开发百科ire() does not work. Where can I find the default CSS Themes from CDN ?

I am quite new to dojo world. Using dojo with google's CDN is well and Fine. But while using dijit just dojo.requ开发者_开发百科ire() does not work. Where can I find the default CSS Themes from CDN ??

and another question out of quorisity: Would the the CSS configuration for dijit work for dojox too ??


The CSS can be found on Google's CDN. I've used it in a page or two. Here's some CSS link tags.

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/resources/dojo.css"> 
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css"> 

Much like the libraries, you can pick a more or less specific version in the URL, so this will grab the latest in the 1.4.x chain.

UPDATED [19/May/2016]:-

Update version - 1.10.4

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/resources/dojo.css"> 
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/tundra/tundra.css"> 


Here is 1.9.1.

Theme Tester: Claro, Tundra, Nihilo, and Soria

  • Claro - http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/claro/claro.css
  • Tundra - http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/tundra/tundra.css
  • Nihilo - http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/nihilo/nihilo.css
  • Soria - http://ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/soria/soria.css


Here is 1.10.4.

Theme Tester: Claro, Tundra, Nihilo, Soria

  • Claro https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/claro/claro.css
  • Tundra https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/tundra/tundra.css
  • Nihilo https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/nihilo/nihilo.css
  • Soria https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/soria/soria.css


Well, As we know 1.11.2 version also has been released so below are the cdn links for that-

  • Claro: https://ajax.googleapis.com/ajax/libs/dojo/1.11.2/dijit/themes/claro/claro.css

  • Tundra: https://ajax.googleapis.com/ajax/libs/dojo/1.11.2/dijit/themes/tundra/tundra.css

  • Nihilo: https://ajax.googleapis.com/ajax/libs/dojo/1.11.2/dijit/themes/nihilo/nihilo.css

  • Soria: https://ajax.googleapis.com/ajax/libs/dojo/1.11.2/dijit/themes/soria/soria.css

Hoping this will help you :)

0

精彩评论

暂无评论...
验证码 换一张
取 消