# Plugins
This is an example plugin:
Siga.plugins.register('turnRed', {
name: 'Turn Things Red',
version: '1.0.0',
description: 'Turns the background red',
author: 'Amine ',
licenses: [ { type: 'MIT' } ],
turnRed: function() {
this[0].style.backgroundColor = '#ff0000';
return this;
}
});
Registers a plugin, making it available for chained DOM calls.Throws Siga.plugins.AlreadyRegistered if a plugin with the same name has been registered.