Getting Started

getPlugin() method

Return an instance of plugin by given name
            
getPlugin ( name : String ) : Plugin
(* denotes a required parameter)
Parameter Type Description
name * String The plugin name
Using in the browser
            
const fv = FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const plugin = fv . getPlugin ( ... ) ;
Using with ES6 module
            
import formValidation from 'formvalidation/dist/es6/core/Core' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
const plugin = fv . getPlugin ( ... ) ;