Edit on Github

Configuration switches

Toolkit supports runtime options that are settable as attributes on the <script> tag that loads platform.js, or as URL query parameters.

debug

Conditionally loads a debug version of platform.js.

Example

<script src="platform/platform.js" debug></script>

Or, equivalently:

http://localhost/toolkitchen/toolkit/getting_started/?debug

By default a minified version of platform (platform.min.js) is loaded. Using debug loads platform.debug.js.

log

Controls console output.

Example

<script src="platform/platform.js" log="bind,ready"></script>

Or, equivalently:

http://localhost/toolkitchen/toolkit/getting_started/?log=bind,ready

Possible values:

ValueDescription
bindSetup actions performed by the data-binding engine.
dataRuntime data transforms that result from bindings
watchData change notifications
eventsCustom event bindings and event propagations
readyCustom element reaching a ready state

shadow

Selects a Shadow DOM implementation: native for supported browsers or polyfill for unsupported browsers.

Example

<script src="platform/platform.js" debug shadow="polyfill"></script>

Or, equivalently:

http://localhost/toolkitchen/toolkit/getting_started/?debug&shadow=polyfill

Possible attribute values:

ValueDescription
nativeNative implementation if the browser supports it. Default if browser supports Shadow DOM.
polyfillForces the Shadow DOM polyfill to be loaded using platform.poly.min.js. Default for browsers that do not support Shadow DOM natively.