本文整理汇总了TypeScript中tabris.Tab类的典型用法代码示例。如果您正苦于以下问题:TypeScript Tab类的具体用法?TypeScript Tab怎么用?TypeScript Tab使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Tab类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: test_Tab
function test_Tab() {
var tab: Tab = new Tab();
tab.set("foo", 23);
tab.set({
badge: "foo",
title: "bar",
image: {src: "http://example.org"}
});
var folder = new TabFolder();
tab.appendTo(folder);
}
示例2: Tab
import {Tab, Composite, WidgetCollection, Button} from 'tabris';
let widget: Tab = new Tab();
widget.appendTo(new Composite());
widget.insertBefore(new Composite());
widget.insertAfter(new Composite());
/*Expected
(4,
not assignable to parameter
(5,
not assignable to parameter
(6,
not assignable to parameter
*/
示例3: Tab
import {ColorValue, ImageValue, Properties, Tab, TabFolder, WidgetCollection} from 'tabris';
let widget: Tab = new Tab();
// Properties
let badge: number;
let image: ImageValue;
let selectedImage: ImageValue;
let title: string;
let nullValue: null;
let badgeColor: ColorValue;
badge = widget.badge;
image = widget.image as ImageValue;
nullValue = widget.image as null;
selectedImage = widget.selectedImage as ImageValue;
nullValue = widget.selectedImage as null;
title = widget.title;
badgeColor = widget.badgeColor;
widget.badge = badge;
widget.image = image;
widget.image = nullValue;
widget.selectedImage = selectedImage;
widget.selectedImage = nullValue;
widget.title = title;
widget.badgeColor = badgeColor;
let properties: Properties<Tab> = {badge, image, selectedImage, title, badgeColor};
widget = new Tab(properties);
widget.set(properties);