registerFilter
(
name
:
String
,
func
:
Function
)
:
Core
| Parameter | Type | Description |
|---|---|---|
name
*
|
String
|
The name of filter |
func
*
|
Function
|
The filter function |
const
fv
=
FormValidation
.
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
registerFilter
(
...
)
;
import
formValidation
from
'formvalidation/dist/es6/core/Core'
;
const
fv
=
formValidation
(
document
.
getElementById
(
'demoForm'
)
,
{
...
}
)
;
fv
.
registerFilter
(
...
)
;