Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.2 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.2 KB

Behavior Weights

This is an API module. Only enable it if another module requires it, or if you want to use the API with your own custom code.

Installation and Usage

Usage

In your own module's Javascript, you can write something like this:

(function(){
  Backdrop.behaviors.mymodule_early = {
    attach: function (context, settings) {..},
    weight: -11
  };
})();

or

(function(){
  Backdrop.behaviors.mymodule_early.weight = -9;
})();

The default weight is 0. Anything with a smaller weight will run earlier. Anything with a higher weight will run later.

Issues

Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.