add

Adds a new record to the dataset.

void add();

Example

myStore.add({
          FirstName:"Alex",
          LastName:"Fgorle",
          Department:"HR",
          Gender: "Male"
});
//or if you use scheme
myStore.data.scheme({
        FirstName:"New employee",
            LastName:"",
            Department:"Unknown",
            Gender: "Male"
});
 
myStore.add({});

Back to top