本文整理汇总了TypeScript中vs/base/browser/dom.hide函数的典型用法代码示例。如果您正苦于以下问题:TypeScript hide函数的具体用法?TypeScript hide怎么用?TypeScript hide使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hide函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: test
test('Part Layout with Content only', function () {
let b = document.createElement('div');
document.getElementById(fixtureId).appendChild(b);
hide(b);
let part = new MyPart3();
part.create(b);
assert(!document.getElementById('myPart.title'));
assert(document.getElementById('myPart.content'));
});
示例2: constructor
constructor(private container: HTMLElement, private message: string, private buttons: string[], private options: IDialogOptions) {
super();
this.modal = this.container.appendChild($('.dialog-modal-block'));
this.element = this.modal.appendChild($('.dialog-box'));
hide(this.element);
const buttonsRowElement = this.element.appendChild($('.dialog-buttons-row'));
this.buttonsContainer = buttonsRowElement.appendChild($('.dialog-buttons'));
const messageRowElement = this.element.appendChild($('.dialog-message-row'));
this.iconElement = messageRowElement.appendChild($('.dialog-icon'));
const messageContainer = messageRowElement.appendChild($('.dialog-message-container'));
const messageElement = messageContainer.appendChild($('.dialog-message'));
messageElement.innerText = this.message;
if (this.options.detail) {
const messageDetailElement = messageContainer.appendChild($('.dialog-message-detail'));
messageDetailElement.innerText = this.options.detail;
}
const toolbarRowElement = this.element.appendChild($('.dialog-toolbar-row'));
this.toolbarContainer = toolbarRowElement.appendChild($('.dialog-toolbar'));
}
示例3: hide
hide(): void {
hide(this.element);
this.showDelayedScheduler.cancel();
}