10

Click here to load reader

Dojo toolkit

Embed Size (px)

DESCRIPTION

Quite basic and summarized slides about Dojo Toolkit

Citation preview

Page 1: Dojo toolkit

Dojo Toolkit

ilegra js lightning talk

Page 2: Dojo toolkit

Is a very powerful JavaScript framework that promises to do everything you need.

http://dojotoolkit.org/

What is Dojo Toolkit?

Page 3: Dojo toolkit

Core:

● Extremely Small and Fast Core

● AMD Modules - Async. Module Definition

● Backward Compatibility

● Powerful Base APIs

What are the features and resources?

Page 4: Dojo toolkit

● Dijit - Dojo's world class widget library

● dgrid and Dojox - to data grids

● Mobile - Rich Interface Elements

● Dojo GFX - Graphics, Charting and

Visualization

What are the features and resources?

Page 5: Dojo toolkit

● Including the library

With Google CDN<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.1/dojo/dojo.

js" data-dojo-config="async: true"></script>

Getting Started

Page 6: Dojo toolkit

● Including the library

Local library<script src="../dojo/dojo.js"

data-dojo-config="async: true"></script>

Getting Started

Page 7: Dojo toolkit

● Including AMDs// Require the module we just created

require(["demo/myModule"], function(myModule){

// Use our module to change the text in the greeting

myModule.setText("greeting", "Hello Dojo!");

// After a few seconds, restore the text to its original state

setTimeout(function(){

myModule.restoreText("greeting");

}, 3000);

});

Getting Started

Page 8: Dojo toolkit

● Waiting the DOM

require(["dojo/dom", "dojo/domReady!"], function

(dom){

var greeting = dom.byId("greeting");

greeting.innerHTML += " from Dojo!";

});

Getting Started

Page 9: Dojo toolkit

● Adding Visual Effectsrequire(["dojo/dom", "dojo/fx", "dojo/domReady!"], function(dom,

fx){

var greeting = dom.byId("greeting");

greeting.innerHTML += " from Dojo!";

fx.slideTo({

top: 100,

left: 200,

node: greeting

}).play();

});

Getting Started

Page 10: Dojo toolkit

examples