本文整理汇总了TypeScript中tabris.Tab.insertAfter方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Tab.insertAfter方法的具体用法?TypeScript Tab.insertAfter怎么用?TypeScript Tab.insertAfter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tabris.Tab
的用法示例。
在下文中一共展示了Tab.insertAfter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: 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
*/
示例2: Tab
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);
widget.appendTo(new TabFolder());
widget.insertBefore(new Tab());
widget.insertAfter(new Tab());
const siblings: WidgetCollection<Tab> = widget.siblings();
class CustomComponent extends Tab {
public foo: string;
constructor(props: Properties<Tab> & Partial<Pick<CustomComponent, 'foo'>>) { super(props); }
}
new CustomComponent({foo: 'bar'}).set({foo: 'bar'});
const components: WidgetCollection<CustomComponent> = widget.siblings(CustomComponent);