Merge pull request #12904 from mkozhukh/webix_4_1-types-2.0

[update] type definitions for Webix 4.1
This commit is contained in:
Paul van Brenk
2016-11-29 14:14:14 -08:00
committed by GitHub
2 changed files with 1700 additions and 455 deletions
+1667 -455
View File
File diff suppressed because it is too large Load Diff
+33
View File
@@ -76,3 +76,36 @@ mObj.config.template = "";
mObj.config.template = (obj) => obj.str;
//getList return a list
var suggestBox = <webix.ui.suggest>$$("suggest");
var list = suggestBox.getList()
var listData = list.serialize();
//creating a new UI
//this is public interface
interface myUI extends webix.ui.list{
customApi():number;
}
//and this is the actual implementations
var next = webix.protoUI({
name:"myUI",
customApi(){
webix.message("test");
return 1;
}
}, webix.ui.list, webix.EditAbility);
//test method of new UI
var my = <myUI>webix.ui({
view:"myUI"
});
var tn:number = my.customApi();
//filters
namespace webix.ui.datafilter{
var avgColumn = webix.extend({
refresh:function(){
}
}, webix.ui.datafilter.summColumn)
}