Web UI component: j-Validation
j-Validation
Configuration:
if
{String} can contain JS condition for evaluation(optional)value
{Object} contains entire modelpath
{String} contains changed path- must return boolean
selector
{String} jQuery selector for disabling (optional, default:button[name="submit"]
)timeout
{Number} a timeout for validation (optional, default:100
)flags
{String}+v13.0.0
flags for better validation, can containvisible,hidden,enabled,disabled
componentsenabled
validates all components which are enabledinput
,textarea
orselect
elementsdisabled
validates all components which are disabledinput
,textarea
orselect
elementshidden
validates all components which are hiddenvisible
validates all components which are visible
track
{String} can contain paths divided by comma which evaluate validation (executors for paths aren't components, but these methodsSET()
,UPD()
,INC()
, etc.)validonly
{Boolean} skipsdirty
state (default:false
)
Good to know:
- component adds
ui-validation-ok
to the element if the model is valid - component adds
ui-validation-no
to the element if the model is invalid
Author
- Peter Širka petersirka@gmail.com
- License
Created
05. august 2015
Updated
16. march 2021
Version
v1
License
https://www.totaljs.com/license/
Responsive
No
Author
Peter Širka
Email
petersirka@gmail.com
