scheme

sets hash of default values for properties

void scheme(object config);

Parameters

configobjecthash of 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