extend¶
webix.extend(base, source, force)¶webix.extend helper.
Please look into the linked official documentation.
Referenced by¶
- helpers
count(),color,combo,date,password,richselect,proxy(),cache,faye,local,post,toArray(),toPDF(),_popups(),dateFilter,numberFilter,serverFilter,serverSelectFilter.- components
DataLoader(),DataRecord(),TreeCollection().- mixins
BaseBind(),BindSource(),htmltable(),DataMove(),DataState(),DataStore(),DragItem(),EditAbility(),EventSystem(),FlexLayout(),Group(),MouseEvents(),ProgressBar(),RenderStack(),Scrollable(),Settings(),TablePaste(),Touch(),TreeStateCheckbox(),TreeStore(),Undo(),UploadDriver().- views
baselayout(),baseview(),calendar(),carousel(),chart(),contextmenu(),datatable(),dataview(),grouplist(),htmlform(),menu(),multiview(),property(),resizearea(),suggest(),tabbar(),tabview(),template(),text(),toolbar(),tooltip(),tree(),treetable(),uploader().
External references¶
Code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | webix.extend = function(base, source, force){
webix.assert(base,"Invalid mixing target");
webix.assert(source,"Invalid mixing source");
if (base.$protoWait){
webix.PowerArray.insertAt.call(base.$protoWait, source,1);
return base;
}
//copy methods, overwrite existing ones in case of conflict
for (var method in source)
if (!base[method] || force)
base[method] = source[method];
//in case of defaults - preffer top one
if (source.defaults)
webix.extend(base.defaults, source.defaults);
//if source object has init code - call init against target
if (source.$init)
source.$init.call(base);
return base;
};
//copies methods and properties from source to the target from all levels
|