Class: DataForm

WinJSContrib.UI. DataForm

This control enhance data form management by adding validation mecanism and form state helpers. It must be placed on a form element. Input fields must use WinJSContrib.UI.DataFormBinding to bind object properties to input

new DataForm(element, options)

Parameters:
Name Type Description
element HTMLElement

DOM element containing the control

options Object
Source:

Namespaces

Converters
defaultBindingOptions

Members

groups :Array

Type:
  • Array
Source:

item :Object

object bound to data form

Type:
  • Object
Source:

messages :Array

Type:
  • Array
Source:

rules :Array

Type:
  • Array
Source:

updated :boolean

indicate if form has updates

Type:
  • boolean
Source:

Methods

cancel()

cancel updates on form item

Source:

checkState()

check form state

Source:

dispose()

release form

Source:

save()

apply changes to source object (relevant only if using workOnCopy)

Source:

validate()

validate form

Source: