[titanium] update types for Titanium 9.0.0 (#42856)

* update types for Titanium 9.0.0

* fix: re-apply changes from ffMathy
This commit is contained in:
Jan Vennemann
2020-03-06 11:36:53 -08:00
committed by GitHub
parent 2f2c04790d
commit e3d3be0cfd
3 changed files with 75829 additions and 55512 deletions
+75770 -55509
View File
File diff suppressed because it is too large Load Diff
+58 -1
View File
@@ -32,7 +32,7 @@ function test_tableview() {
text: 'Row ' + (i + 1)
});
const image = Ti.UI.createImageView({
url: 'KS_nav_ui.png'
image: 'KS_nav_ui.png'
});
const button = Ti.UI.createButton({
right: 10,
@@ -85,3 +85,60 @@ function test_network() {
// Send the request.
client.send();
}
function test_android_r() {
const systemAcon = Ti.Android.R.drawable.icon;
const appIcon = Ti.App.Android.R.drawable.icon;
}
function test_events() {
const view = Ti.UI.createView();
view.addEventListener('click', e => {
console.log(e.x, e.y);
});
view.fireEvent('click');
}
function test_listdataitem() {
const items1: ListDataItem[] = [
{
properties: {
itemId: 'test',
title: 'Jon Doe'
}
}
];
const section1 = Ti.UI.createListSection({
items: items1
});
const template = {
childTemplates: [
{
type: 'Ti.UI.Label',
bindId: 'title',
properties: {
color: 'black'
}
}
]
};
const items2: ListDataItem[] = [
{
template: 'custom',
title: { text: 'Jane Doe' },
properties: {
accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE
}
}
];
const section2 = Ti.UI.createListSection({
items: items2,
});
const list = Ti.UI.createListView({
templates: { custom: template },
sections: [section1]
});
list.replaceSectionAt(0, section2);
}
+1 -2
View File
@@ -2,8 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
"dom",
"es6"
"es5"
],
"noImplicitAny": true,
"noImplicitThis": false,