本文整理汇总了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();
}