Login Register Help
API Documentation
Choose a stylesheet:

Constructordojo.behavior

dojo.require("dojo.behavior");
defined in dojo/behavior.js

A very simple, lightweight mechanism for applying code to existing documents, based around dojo.query (CSS3 selectors) for node selection, and a simple two-command API: dojo.behavior.add() and dojo.behavior.apply();

Behaviors apply to a given page, and are registered following the syntax options described by dojo.behavior.add to match nodes to actions, or “behaviors”.

Added behaviors are applied to the current DOM when .apply() is called, matching only new nodes found since .apply() was last called.

Jump to PropertiesFunctionsBack to top

Functionadd(behaviorObj: Object)
Defined by
Add the specified behavior to the list of behaviors, ignoring existing matches.
Defined by
Applies all currently registered behaviors to the document.

Jump to FunctionsPropertiesBack to top

Defined by