Skip to content

backdrop-contrib/behavior_weights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Allows you to attach weights to your Backdrop behaviors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published