w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Form
Overview
Events
Properties
Methods
Fields
Numeric
Date & Time
Drop Lists
Multi Selects
Upload
Custom
w2form.nestedFields
Use field name containing dots as separator to look into object.
Boolean, default = true
let form = new w2form({ name : 'form', url : 'server/post', header : 'Field Types', record: { simple: { text: 'default text value', alpha: 'ABC123', }, single: { check: true, toggle: true } }, fields: [ { field: 'simple.alpha', type: 'alphaNumeric', html: { label: 'Alpha Numeric', attr: 'style="width: 300px"' } }, { field: 'simple.text', type: 'text', html: { label: 'Text', attr: 'style="width: 300px"' } }, { field: 'single.check', type: 'checkbox', html: { label: 'Check box' } }, { field: 'single.toggle', type: 'toggle', html: { label: 'Toggle' } } ], actions: { Reset() { this.clear(); }, Save() { this.save(); } } });
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus