本文整理匯總了TypeScript中ui/layouts/grid-layout.GridLayout.addChild方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript GridLayout.addChild方法的具體用法?TypeScript GridLayout.addChild怎麽用?TypeScript GridLayout.addChild使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ui/layouts/grid-layout.GridLayout
的用法示例。
在下文中一共展示了GridLayout.addChild方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: displayDevWarning
public static displayDevWarning(parent:GridLayout, message: string, ...viewsToCollapse: View[]): void {
let warningText = new Label();
warningText.text = message;
warningText.color = new Color('red');
warningText.textWrap = true;
warningText.marginTop = 50;
parent.addChild(warningText);
viewsToCollapse.forEach((view: View) => {
if (view != null) {
view.visibility = 'collapse';
}
});
}
示例2: loginPageFunc
public loginPageFunc() {
let wv = new TnsOauthWebView(this._cancelEventHandler);
TnsOAuthWebViewHelper.initWithWebViewAndIntercept(wv, this._checkCodeIntercept);
let grid = new GridLayout();
grid.addChild(wv);
let stack = new StackLayout();
stack.addChild(grid);
let page = new Page();
page.content = stack;
if (isAndroid) {
page.actionBarHidden = true;
}
wv.src = this._authUrl;
return page;
};
示例3: toggleBusyIndicator
timerId = timerModule.setInterval(function () {
toggleBusyIndicator(false);
layout.addChild(myComponentInstance);
timerModule.clearInterval(timerId);
}, 800);