registerPlugin
(
name
:
String
,
plugin
:
Object
)
:
Core
| Parameter | Type | Description |
|---|---|---|
name
*
|
String
|
The name of plugin |
plugin
*
|
Object
|
The plugin instance |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
registerPlugin
(
...
)
;
import
{
formValidation
}
from
'/path/to/-validation/cjs/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
registerPlugin
(
...
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
registerPlugin
(
...
)
;