mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #12904 from mkozhukh/webix_4_1-types-2.0
[update] type definitions for Webix 4.1
This commit is contained in:
Vendored
+1667
-455
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user