DataRecord

class webix.DataRecord(data)
Arguments:
  • data (object) – A configuration object

Datarecord component.

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
webix.DataRecord = webix.proto({
    name:"DataRecord",
    isVisible:function(){ return true; },
    $init:function(config){
        this.data = config||{};
        var id = (config&&config.id)?config.id:webix.uid();
        this._settings = { id:id };
        webix.ui.views[id] = this;
    },
    getValues:function(){
        return this.data;
    },
    setValues:function(data, update){
        this.data = update?webix.extend(this.data, data, true):data;
        this.callEvent("onChange", [data]);
    },
    refresh:function(){ this.callEvent("onBindRequest"); }
}, webix.EventSystem, webix.BaseBind, webix.AtomDataLoader, webix.Settings);