isPluginEnabled
(
name
:
String
)
:
boolean
false
.
| Parameter | Type | Description |
|---|---|---|
name
*
|
String
|
The plugin name |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
fields
:
{
...
}
,
plugins
:
{
wizard
:
new
FormValidation
.
plugins
.
Wizard
(
{
...
}
)
,
}
}
)
;
// Check if the Wizard plugin is enabled
fv
.
isPluginEnabled
(
'wizard'
)
;
import
{
formValidation
}
from
'/path/to/-validation/esm/bundle/popular'
;
import
{
Wizard
}
from
'/path/to/-validation/esm/plugin-wizard'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
fields
:
{
...
}
,
plugins
:
{
wizard
:
new
Wizard
(
{
...
}
)
,
}
}
)
;
// Check if the Wizard plugin is enabled
fv
.
isPluginEnabled
(
'wizard'
)
;
import
{
formValidation
}
from
'-validation/bundle/popular'
;
import
{
Wizard
}
from
'-validation/plugin-wizard'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
fields
:
{
...
}
,
plugins
:
{
wizard
:
new
Wizard
(
{
...
}
)
,
}
}
)
;
// Check if the Wizard plugin is enabled
fv
.
isPluginEnabled
(
'wizard'
)
;