registerPlugin() method

Register a plugin
The plugin instance then can be accessed via the getPlugin() method, or removed completely by the deregisterPlugin() method.
registerPlugin(name: String, plugin: Object): Core
(* denotes a required parameter)
ParameterTypeDescription
name*StringThe name of plugin
plugin*ObjectThe plugin instance
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.registerPlugin(...);
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.registerPlugin(...);