Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This will build a layer, requiering all modules needed to create the dojox.image.Gallery <em>besides</em> the components mentioned in the discardLayer.</p> <pre><code> layers: [ { name: "../dojox/discardLayer.js", discard: true, dependencies: [ "dojox.image.Gallery", "dojox.image.SlideShow", "dojox.image.ThumbnailPicker" ] },{ name: "../drops/layer.js", layerDependencies: [ "../dojox/discardLayer.js" ], dependencies: [ "dojox.image.Gallery" ] </code></pre> <p>Try instead of <code>exclude</code>, use the <code>layerDependencies</code> key - i think the exlude looks for app/layers/core from withing your dojo_source tree and not in dojo_release tree.. So at time of build youre excluding an unknown component.</p> <p>The above sample is something i've used to be able to override the 3 discarded components elsewhere, however it doesnt suit your needs.</p> <p>You would need to <strong>Not</strong> set <code>discard</code> for your <strong>core layer</strong> and instead simply set it as a dependency (which will exclude all dependencies to the layers, which has allready been built). </p> <p>Then, depending on which version of dojo youre using - you should call <code>dojo.require("layers.core"); dojo.require("layers.appcontext")</code> or <code>require(["layers/core", "layers/appcontext"], function() { });</code> to assert that those layers are present.</p> <p>Before using anything from their dependencies, pull in the requirement with another require call, e.g. <code>dojo.require("dijit.form.Button"); new dijit.form.Button({ ... });</code>. The layer will fill the components into a cached hash (dojo.cache) and to make sure theyre declared fully, pull in the requirement.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload