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