Only private and/or inherited functions are available.
Adds the specified classes to the end of the class list on the
passed node.
Registers a function to be triggered after the DOM has finished
loading and widgets declared in markup have been instantiated.
Images and CSS files may or may not have finished downloading when
the specified function is called. (Note that widgets' CSS and HTML
code is guaranteed to be downloaded before said widgets are
instantiated.)
registers a function to be triggered when the page unloads. In a browser
enviroment, the functions will be triggered during the window.onbeforeunload
event. Be careful doing work during window.onbeforeunload. onbeforeunload
can be triggered if a link to download a file is clicked, or if the link is a
javascript: link. In these cases, the onbeforeunload event fires, but the
document is not actually destroyed. So be careful about doing destructive
operations in a dojo.addOnUnload callback.
registers a function to be triggered when window.onunload fires.
Be careful trying to modify the DOM or access JavaScript properties
during this phase of page unloading: they may not always be available.
Consider dojo.addOnUnload() if you need to modify the DOM or do heavy
JavaScript work.
dojo.anim(node, properties, duration, easing, onEnd, delay)
A simpler interface to `dojo.animateProperty()`, also returns
an instance of `dojo._Animation` but begins the animation
immediately, unlike nearly every other Dojo animation API.
Gets or sets an attribute on an HTML element.
blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend,
can reuse a previously allocated dojo.Color object for the result
Return the body element of the document
return the body object associated with dojo.doc
Returns DOM node with matching `id` attribute or `null`
if not found, similar to "$" function in another library.
If `id` is a DomNode, this function is a no-op.
Clones objects (including DOM nodes) and all children.
Warning: do not clone cyclic structures.
builds a color from 1, 2, 3, or 4 element array
converts a hex string with a '#' prefix to a color object.
Supports 12-bit #rgb shorthand.
get rgb(a) array from css-style color declarations
parses str for a color value.
Create a link that calls one function when another executes.
Ensure that everytime obj.event() is called, a message is published
on the topic. Returns a handle which can be passed to
dojo.disconnect() to disable subsequent automatic publication on
the topic.
Getter/setter for the content-box of node.
Returns an object that measures margin box width/height and
absolute positioning data from dojo._abs().
Create a feature-rich constructor from compact notation
returns a new object which "looks" to obj for properties which it
does not have a value for. Optionally takes a bag of properties to
seed the returned object with initially.
Log a debug message to indicate that a behavior has been
deprecated.
Remove a link created by dojo.connect.
Perform an evaluation in the global scope. Use this rather than
calling 'eval()' directly.
Determines whether or not every item in arr satisfies the
condition implemented by callback.
determine if an object supports a given method
Marks code as experimental.
Adds all properties and methods of props to constructor's
prototype, making them available to all instances created with
constructor.
Returns an animation that will fade node defined in 'args' from
its current opacity to fully opaque.
Returns an animation that will fade node defined in 'args'
from its current opacity to fully transparent.
Returns a new Array with those items from arr that match the
condition implemented by callback.
normalizes properties on the event object including event
bubbling methods, keystroke normalization, and x/y positions
for every item in arr, callback is invoked. Return values are ignored.
return a serialized JSON string from a form node or string
ID identifying the form to serialize
dojo.formToObject returns the values encoded in an HTML form as
string properties in an object which it then returns. Disabled form
elements, buttons, and other non-value form elements are skipped.
Multi-select elements are returned as an array of string values.
Returns a URL-encoded string representing the form passed as either a
node or string ID identifying the form to serialize
Parses a [JSON](http://json.org) string to return a JavaScript object. Throws for invalid JSON strings.
Returns a "computed style" object.
Get a property from a dot-separated string, such as "A.B.C"
Returns true if the requested attribute is specified on the
given element, and false otherwise.
Returns whether or not the specified classes are a portion of the
class list currently applied to the node.
Returns a function that will only ever execute in the a given scope.
This allows for easy use of object member functions
in callbacks and other places in which the "this" keyword may
otherwise not reference the expected scope.
Any number of default positional arguments may be passed as parameters
beyond "method".
Each of these values will be used to "placehold" (similar to curry)
for the hitched function.
locates the first index of the provided value in the
passed array. If the value is not found, -1 is returned.
Returns true if it is a built-in function or some other kind of
oddball that *should* report as a function but doesn't
Return true if it is an Array
similar to dojo.isArray() but more permissive
Returns true if node is a descendant of ancestor
Return true if it is a Function
Returns true if it is a JavaScript object (or an Array, a Function
or null)
Return true if it is a String
locates the last index of the provided value in the passed
array. If the value is not found, -1 is returned.
Executes a function that needs to be executed for the loader's dojo.requireIf
resolutions to work. This is needed mostly for the xdomain loader case where
a function needs to be executed to set up the possible values for a dojo.requireIf
call.
applies callback to each element of arr and returns
an Array with the results
Getter/setter for the margin-box of node.
Adds all properties and methods of props to obj and returns the
(now modified) obj.
Returns a `dojo._Url` object relative to a module.
takes a name/value mapping object and returns a string representing
a URL-encoded version of that object.
similar to hitch() except that the scope object is left to be
whatever the execution context eventually becomes.
Attempt to insert node into the DOM, choosing from various positioning options.
Returns true if successful, false otherwise.
require one or more modules based on which host environment
Dojo is currently operating in
Each javascript source file must have at least one
`dojo.provide()` call at the top of the file, corresponding to
the file name. For example, `js/dojo/foo.js` must have
`dojo.provide("dojo.foo");` before any calls to
`dojo.require()` are made.
Invoke all listener method subscribed to topic.
Returns nodes which match the given CSS3 selector, searching the
entire document by default but optionally taking a node to scope
the search by. Returns an instance of dojo.NodeList.
returns an object representing a de-serialized query section of a
URL. Query keys with multiple values are returned in an array.
maps a module name to a path
Removes an attribute from an HTML element.
Removes the specified classes from node.
loads a Javascript module from the appropriate URI
If the condition is true then call dojo.require() for the specified
resource
Declares translated resources and loads them if necessary, in the
same style as dojo.require. Contents of the resource bundle are
typically strings, but may be any name/value pair, represented in
JSON format. See also `dojo.i18n.getLocalization`.
changes the behavior of many core Dojo functions that deal with
namespace and DOM lookup, changing them to work in a new global
context (e.g., an iframe). The varibles dojo.global and dojo.doc
are modified as a result of calling this function and the result of
`dojo.body()` likewise differs.
Set a property from a dot-separated string, such as "A.B.C"
enable or disable selection on a node
Determines whether or not any item in arr satisfies the
condition implemented by callback.
prevents propagation and clobbers the default action of the
passed event
Accesses styles on a node. If 2 arguments are
passed, acts as a getter. If 3 arguments are passed, acts
as a setter.
Attach a listener to a named topic. The listener function is invoked whenever the
named topic is published (see: dojo.publish).
Returns a handle which is needed to unsubscribe this listener.
Adds a class to node if not present, or removes if present.
Pass a boolean condition if you want to explicitly add or remove.
Returns a [JSON](http://json.org) serialization of an object.
trims whitespaces from both sides of the string
signal fired by impending environment destruction. You may use
dojo.addOnUnload() or dojo.connect() to this method to perform
page/application cleanup methods. See dojo.addOnUnload for more info.
signal fired by impending window destruction. You may use
dojo.addOnWIndowUnload() or dojo.connect() to this method to perform
page/application cleanup methods. See dojo.addOnWindowUnload for more info.
dojo.withDoc(documentObject, callback, thisObject, cbArguments)
Call callback with documentObject as dojo.doc. If provided,
callback will be executed in the context of object thisObject
Call callback with globalObject as dojo.global and
globalObject.document as dojo.doc. If provided, globalObject
will be executed in the context of object thisObject
Internal xd loader function. The xd version of dojo.requireLocalization.
Sends an HTTP request with the given method.
Sends an HTTP DELETE request to the server.
Sends an HTTP GET request to the server.
Sends an HTTP POST request to the server. In addtion to the properties
listed for the dojo.__XhrArgs type, the following property is allowed:
postData:
String. Send raw data in the body of the POST request.
Sends an HTTP PUT request to the server. In addtion to the properties
listed for the dojo.__XhrArgs type, the following property is allowed:
putData:
String. Send raw data in the body of the PUT request.
Gets the position of the passed element relative to
the viewport (if includeScroll==false), or relative to the
document root (if includeScroll==true).
Returns an object of the form:
{ x: 100, y: 300 }
if includeScroll is passed, the x and y values will include any
document offsets that may affect the position relative to the
viewport.
The default easing function for dojo._Animation(s)
removes node from its parent, clobbers it and all of its
children.
Adds escape sequences for non-visual characters, double quote and
backslash and surrounds with double quotes to form a valid string
literal.
Returns an animation that will fade the node defined by
args.node from the start to end values passed (args.start
args.end) (end is mandatory, start is optional)
returns an object with properties useful for noting the border
dimensions.
* l/t = the sum of left/top border (respectively)
* w = the sum of the left and right border
* h = the sum of the top and bottom border
The w/h are used for calculating boxes.
Normally application code will not need to invoke this
directly, and will use the ...box... functions instead.
Returns an object that encodes the width, height, left and top
positions of the node's content box, irrespective of the
current box model.
returns an object that encodes the width, height, left and top
positions of the node's margin box.
returns object with properties useful for box fitting with
regards to box margins (i.e., the outer-box).
* l/t = marginLeft, marginTop, respectively
* w = total width, margin inclusive
* h = total height, margin inclusive
The w/h are used for calculating boxes.
Normally application code will not need to invoke this
directly, and will use the ...box... functions instead.
Converts a module name in dotted JS notation to an array
representing the path in the source tree
Returns the current opacity of the passed node as a
floating-point value between 0 and 1.
returns object with properties useful for box fitting with
regards to padding.
* l/t = the sum of left/top padding and left/top border (respectively)
* w = the sum of the left and right padding and border
* h = the sum of the top and bottom padding and border
The w/h are used for calculating boxes.
Normally application code will not need to invoke this
directly, and will use the ...box... functions instead.
Returns object with special values specifically useful for node
fitting.
* l/t = left/top padding (respectively)
* w = the total of the left and right padding
* h = the total of the top and bottom padding
If 'node' has position, l/t forms the origin for child nodes.
The w/h are used for calculating boxes.
Normally application code will not need to invoke this
directly, and will use the ...box... functions instead.
Read the contents of the specified uri and return those contents.
Adds query params discovered by the io deferred construction to the URL.
Only use this for operations which are fundamentally GET-type operations.
Cancels all pending IO requests, regardless of IO type
(xhr, script, iframe).
sets up the Deferred and ioArgs property on the Deferred so it
can be used in an io call.
watches the io request represented by dfd to see if it completes.
True if the node is BUTTON or INPUT.type="button".
Load a Javascript module given a relative path
Loads JavaScript from a URI
calls loadUri then findModule and returns true if both succeed
Adds all properties and methods of props to obj. This addition
is "prototype extension safe", so that instances of objects
will not pass along prototype defaults.
sets width/height/left/top in the current (native) box-model
dimentions. Uses the unit passed in u.
Sets the size of the node's contents, irrespective of margins,
padding, or borders.
sets the size of the node's margin box and placement
(left/top), irrespective of box model. Think of it as a
passthrough to dojo._setBox that handles box-model vagaries for
you.
set the opacity of the passed node portably. Returns the
new opacity of the node.
Converts an array-like object (i.e. arguments, DOMCollection) to an
array. Returns a new Array with the elements of obj.
True if the node uses border-box layout.
Internal xd loader function. Creates an xd module source given an
non-xd module contents.
Internal xd loader function.
Does a depth first, breadth second search and eval of required modules.
Figure out whether the path is local or x-domain
If there is a colon before the first / then, we have a URL with a protocol.
Internal xd loader function. Used when loading
a flattened localized bundle via a script tag.
Internal xd loader function. Called by an xd module resource when
it has been loaded via a script tag.
Evaluate the function with scopeArgs for multiversion support.
Internal xd loader function. Determines what to do with a dependency
that was listed in an xd version of a module contents.
Internal xd loader function.
Walks the requires and evaluates module resource contents in
the right order.
does the work of portably generating a new XMLHTTPRequest
object.