Additional logic for the properties of the element. Plugins are called every time a property is passed to an element.
Example
function plugin(el, keyProp, allProps) {
if(allProps[keyProp] === 'somevalue') {
// do somethin
return true // if true, the property will no longer be processed by other plugins.
}
}
Methods
-
Replaces appW to application width and appH to application height.
Name Type Description elElement keystring propsObject -
Print prop "consolelog" value to console. Return true
Name Type Description elElement keystring propsObject