sync working code, and import type-doc
This commit is contained in:
@ -51,7 +51,7 @@ const ColumnTypes = {
|
||||
5: GridTextColumn
|
||||
};
|
||||
|
||||
class Grid {
|
||||
export class Grid {
|
||||
#source;
|
||||
#currentSource;
|
||||
#parent;
|
||||
@ -110,8 +110,6 @@ class Grid {
|
||||
isCheckbox(type) { return type === 3 }
|
||||
};
|
||||
|
||||
static GridColumn = GridColumn;
|
||||
|
||||
constructor(container) {
|
||||
this.#parent = container;
|
||||
}
|
||||
@ -412,6 +410,11 @@ class Grid {
|
||||
}
|
||||
}
|
||||
|
||||
clearHeaderCheckbox() {
|
||||
const boxes = this.#refs.header.querySelectorAll('.ui-check-wrapper>input');
|
||||
boxes.forEach(box => box.checked = false);
|
||||
}
|
||||
|
||||
#createHeader() {
|
||||
const thead = createElement('table', 'ui-grid-header');
|
||||
if (this.headerVisible === false) {
|
||||
@ -1552,6 +1555,4 @@ class Grid {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default Grid;
|
||||
}
|
Reference in New Issue
Block a user