sync
This commit is contained in:
@ -32,6 +32,7 @@ $buttonHeight: 28px;
|
||||
.ui-popup-container {
|
||||
min-width: 400px;
|
||||
max-width: 800px;
|
||||
max-height: 90vh;
|
||||
background-color: var(--bg-color);
|
||||
border-radius: var(--corner-radius);
|
||||
box-shadow: 0 2px 8px var(--shadow-color);
|
||||
|
2
lib/ui/grid/grid.d.ts
vendored
2
lib/ui/grid/grid.d.ts
vendored
@ -45,7 +45,7 @@ interface GridColumnDefinition {
|
||||
allcheck?: boolean;
|
||||
events?: { [event: string]: any };
|
||||
attrs?: { [key: string]: string } | ((item: GridItem | any) => { [key: string]: string });
|
||||
// TODO: allowFilter?: boolean;
|
||||
allowFilter?: boolean;
|
||||
filter?: (item: GridItem | any) => any;
|
||||
sortFilter?: (a: GridItem | any, b: GridItem | any) => -1 | 0 | 1;
|
||||
bgFilter?: (item: GridItem | any) => string;
|
||||
|
@ -1116,7 +1116,7 @@ class Grid {
|
||||
reset.innerText = this.langs.reset;
|
||||
reset.addEventListener('click', () => {
|
||||
this.#set(col.key, 'filter', null);
|
||||
// TODO: change __filtered
|
||||
this.#colAttrs.__filtered = this.columns.some(c => this.#get(c.key, 'filter') != null)
|
||||
this.#refreshSource();
|
||||
if (typeof col.onFiltered === 'function') {
|
||||
col.onFiltered.call(this, col);
|
||||
|
Reference in New Issue
Block a user