scheme

sets object with default values for properties

void scheme(object config);
configobjectobject with default values

Example

$$('list').data.scheme({ name:"unknown", sex:"male", age:"30" });   $$('list').add({ id:1, name:"Alex" });   // will add a record: name:Alex, sex:male, age:30

Related samples

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.