本文整理匯總了TypeScript中ag-grid/main.Utils.removeAllChildren方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Utils.removeAllChildren方法的具體用法?TypeScript Utils.removeAllChildren怎麽用?TypeScript Utils.removeAllChildren使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ag-grid/main.Utils
的用法示例。
在下文中一共展示了Utils.removeAllChildren方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: createGui
private createGui() {
var _this = this;
this.setTemplate(this.createTemplate());
this.eListContainer = this.queryForHtmlElement(".ag-filter-list-container");
this.eFilterValueTemplate = this.queryForHtmlElement("#itemForRepeat");
this.eSelectAll = this.queryForHtmlElement("#selectAll");
this.eListViewport = this.queryForHtmlElement(".ag-filter-list-viewport");
this.eMiniFilter = this.queryForHtmlElement(".ag-filter-filter");
this.eListContainer.style.height = (this.model.getUniqueValueCount() * this.rowHeight) + "px";
this.setContainerHeight();
this.eMiniFilter.value = this.model.getMiniFilter();
_.addChangeListener(this.eMiniFilter, function () {
_this.onMiniFilterChanged();
});
_.removeAllChildren(this.eListContainer);
this.eSelectAll.onclick = this.onSelectAll.bind(this);
if (this.model.isEverythingSelected()) {
this.eSelectAll.indeterminate = false;
this.eSelectAll.checked = true;
} else if (this.model.isNothingSelected()) {
this.eSelectAll.indeterminate = false;
this.eSelectAll.checked = false;
} else {
this.eSelectAll.indeterminate = true;
}
this.setupApply();
}