필터 팝업 크기와 값 목록 꾸미기Size the filter popup and shape the value list
filterMenu의 width, height로 팝업 크기를, blankPosition으로 (비어 있음) 위치를, valueTree로 날짜 값 목록을 연>월>일 트리로 정하고, filterRowHeight로 필터 행 높이를, 컬럼의 filter.menu: false로 깔때기를 숨겨요.Set the popup size with filterMenu width and height, the empty-value position with blankPosition, turn date value lists into a year > month > day tree with valueTree, set the filter row height with filterRowHeight, and hide a funnel with filter.menu: false.
코드Code
탭을 골라 코드를 복사하세요. 위 화면은 이 코드를 그대로 실행한 결과예요.Pick a tab and copy the code. The preview above runs exactly this code.
이 화면은 새 모양 옵션을 켠 모양이에요: density: 'spacious', iconStyle: 'soft', motion: true (코드에 없으면 기본 모양으로 보여요)This preview has the new-look options on: density: 'spacious', iconStyle: 'soft', motion: true (without them in your code you get the default look)
버튼을 누르면 이 예제의 코드가 StackBlitz나 CodeSandbox로 전송돼요. 누르기 전에는 아무것도 보내지 않아요.
<div id="app">
<div class="toolbar">
<select aria-label="팝업 너비" id="width">
<option value="default" selected>기본</option>
<option value="wide">480px</option>
</select>
<select aria-label="값 목록 높이" id="height">
<option value="default" selected>기본</option>
<option value="tall">360px</option>
</select>
<select aria-label="(비어 있음) 위치" id="blank">
<option value="default" selected>기본(맨 아래)</option>
<option value="first">맨 위</option>
</select>
<select aria-label="날짜 값 목록" id="tree">
<option value="off" selected>평평하게</option>
<option value="on">연>월>일 트리</option>
</select>
<select aria-label="필터 행 높이" id="rowHeight">
<option value="default" selected>기본</option>
<option value="tall">56px</option>
</select>
</div>
<div id="grid" style="height: 520px"></div>
</div>
<script type="module" src="./main.js"></script>import { createGrid } from 'maxgrid';
import { actions, options, setup } from './example';
const api = createGrid(document.getElementById('grid'), options);
setup(api, console.log);
document.getElementById('width').addEventListener('change', (event) => actions.width(api, event.target.value));
document.getElementById('height').addEventListener('change', (event) => actions.height(api, event.target.value));
document.getElementById('blank').addEventListener('change', (event) => actions.blank(api, event.target.value));
document.getElementById('tree').addEventListener('change', (event) => actions.tree(api, event.target.value));
document.getElementById('rowHeight').addEventListener('change', (event) => actions.rowHeight(api, event.target.value));const names = ['김민준', '이서연', '박지호', '최유나', '정도윤', '한소희'];
const depts = ['개발팀', '디자인팀', '영업팀', '인사팀', null];
let menu = {};
export const options = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: '이름', width: 120, filter: { menu: false } },
{ id: 'dept', title: '부서', width: 130 },
{
id: 'hired',
title: '입사일',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6],
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say = () => { };
export function setup(_api, log) {
say = log;
menu = {};
log({
ko: '깔때기를 눌러 팝업 크기와 값 목록을 바꿔 보세요. 이름 컬럼은 menu: false라서 깔때기가 없고 필터 행 칸만 있어요.',
en: 'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
});
}
function set(api, patch, text) {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api, value) => set(api, { width: value === 'wide' ? 480 : undefined }, {
ko: value === 'wide' ? '팝업 너비 480px' : '팝업 너비 기본',
en: value === 'wide' ? 'Popup width 480px' : 'Popup width default',
}),
height: (api, value) => set(api, { height: value === 'tall' ? 360 : undefined }, {
ko: value === 'tall' ? '값 목록 높이 360px' : '값 목록 높이 기본',
en: value === 'tall' ? 'Value list height 360px' : 'Value list height default',
}),
blank: (api, value) => set(api, { blankPosition: value === 'first' ? 'first' : undefined }, {
ko: value === 'first' ? '(비어 있음)을 맨 위에' : '(비어 있음)은 기본 위치',
en: value === 'first' ? 'Empty value first' : 'Empty value at the default place',
}),
tree: (api, value) => set(api, { valueTree: value === 'on' }, {
ko: value === 'on' ? '입사일 값 목록이 연>월>일 트리예요' : '값 목록이 평평해요',
en: value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
}),
rowHeight: (api, value) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say({
ko: value === 'tall' ? '필터 행 높이 56px' : '필터 행 높이 기본',
en: value === 'tall' ? 'Filter row height 56px' : 'Filter row height default',
});
},
};<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>필터 팝업 크기와 값 목록 꾸미기</title>
</head>
<body>
<div class="toolbar">
<select aria-label="팝업 너비" id="width">
<option value="default" selected>기본</option>
<option value="wide">480px</option>
</select>
<select aria-label="값 목록 높이" id="height">
<option value="default" selected>기본</option>
<option value="tall">360px</option>
</select>
<select aria-label="(비어 있음) 위치" id="blank">
<option value="default" selected>기본(맨 아래)</option>
<option value="first">맨 위</option>
</select>
<select aria-label="날짜 값 목록" id="tree">
<option value="off" selected>평평하게</option>
<option value="on">연>월>일 트리</option>
</select>
<select aria-label="필터 행 높이" id="rowHeight">
<option value="default" selected>기본</option>
<option value="tall">56px</option>
</select>
</div>
<div id="grid" style="height: 520px"></div>
<ul id="log" aria-live="polite"></ul>
<script src="https://cdn.maxmine.com/maxgrid/latest/maxgrid.min.js"></script>
<script>
const names = ['김민준', '이서연', '박지호', '최유나', '정도윤', '한소희'];
const depts = ['개발팀', '디자인팀', '영업팀', '인사팀', null];
let menu = {};
const options = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: '이름', width: 120, filter: { menu: false } },
{ id: 'dept', title: '부서', width: 130 },
{
id: 'hired',
title: '입사일',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6],
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say = () => { };
function setup(_api, log) {
say = log;
menu = {};
log({
ko: '깔때기를 눌러 팝업 크기와 값 목록을 바꿔 보세요. 이름 컬럼은 menu: false라서 깔때기가 없고 필터 행 칸만 있어요.',
en: 'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
});
}
function set(api, patch, text) {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
const actions = {
width: (api, value) => set(api, { width: value === 'wide' ? 480 : undefined }, {
ko: value === 'wide' ? '팝업 너비 480px' : '팝업 너비 기본',
en: value === 'wide' ? 'Popup width 480px' : 'Popup width default',
}),
height: (api, value) => set(api, { height: value === 'tall' ? 360 : undefined }, {
ko: value === 'tall' ? '값 목록 높이 360px' : '값 목록 높이 기본',
en: value === 'tall' ? 'Value list height 360px' : 'Value list height default',
}),
blank: (api, value) => set(api, { blankPosition: value === 'first' ? 'first' : undefined }, {
ko: value === 'first' ? '(비어 있음)을 맨 위에' : '(비어 있음)은 기본 위치',
en: value === 'first' ? 'Empty value first' : 'Empty value at the default place',
}),
tree: (api, value) => set(api, { valueTree: value === 'on' }, {
ko: value === 'on' ? '입사일 값 목록이 연>월>일 트리예요' : '값 목록이 평평해요',
en: value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
}),
rowHeight: (api, value) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say({
ko: value === 'tall' ? '필터 행 높이 56px' : '필터 행 높이 기본',
en: value === 'tall' ? 'Filter row height 56px' : 'Filter row height default',
});
},
};
options.ariaLabel = "필터 팝업 크기와 값 목록 꾸미기";
const api = MaxGrid.createGrid(document.getElementById('grid'), options);
setup(api, (message) => {
const item = document.createElement('li');
item.textContent =
typeof message === 'string' ? message : navigator.language.startsWith('ko') ? message.ko : message.en;
document.getElementById('log').prepend(item);
});
document.getElementById('width').addEventListener('change', (event) => actions.width(api, event.target.value));
document.getElementById('height').addEventListener('change', (event) => actions.height(api, event.target.value));
document.getElementById('blank').addEventListener('change', (event) => actions.blank(api, event.target.value));
document.getElementById('tree').addEventListener('change', (event) => actions.tree(api, event.target.value));
document.getElementById('rowHeight').addEventListener('change', (event) => actions.rowHeight(api, event.target.value));
</script>
</body>
</html>버튼을 누르면 이 예제의 코드가 StackBlitz나 CodeSandbox로 전송돼요. 누르기 전에는 아무것도 보내지 않아요.
import { useEffect } from 'react';
import { Grid, useGridApi } from '@maxgrid/react';
import { actions, options, setup, type Row } from './example';
export function ExampleGrid() {
const [api, gridRef] = useGridApi<Row>();
useEffect(() => (api ? setup(api, console.log) : undefined), [api]);
return (
<>
<div className="toolbar">
<select
aria-label="팝업 너비"
disabled={!api}
onChange={(event) => api && actions.width(api, event.target.value)}
>
<option value="default">기본</option>
<option value="wide">480px</option>
</select>
<select defaultValue="default"
aria-label="값 목록 높이"
disabled={!api}
onChange={(event) => api && actions.height(api, event.target.value)}
>
<option value="default">기본</option>
<option value="tall">360px</option>
</select>
<select defaultValue="default"
aria-label="(비어 있음) 위치"
disabled={!api}
onChange={(event) => api && actions.blank(api, event.target.value)}
>
<option value="default">기본(맨 아래)</option>
<option value="first">맨 위</option>
</select>
<select defaultValue="default"
aria-label="날짜 값 목록"
disabled={!api}
onChange={(event) => api && actions.tree(api, event.target.value)}
>
<option value="off">평평하게</option>
<option value="on">연>월>일 트리</option>
</select>
<select defaultValue="off"
aria-label="필터 행 높이"
disabled={!api}
onChange={(event) => api && actions.rowHeight(api, event.target.value)}
>
<option value="default">기본</option>
<option value="tall">56px</option>
</select>
</div>
<Grid style={{ height: 520 }} ref={gridRef} options={options} />
</>
);
}import type { GridApi, GridOptions } from '@maxgrid/react';
export type LogText = string | { ko: string; en: string };
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = ['김민준', '이서연', '박지호', '최유나', '정도윤', '한소희'];
const depts = ['개발팀', '디자인팀', '영업팀', '인사팀', null];
// 팝업 크기(width, height), 빈 값 위치(blankPosition), 날짜 값 목록의 연>월>일 트리(valueTree),
// 필터 행 높이(filterRowHeight)는 모두 옵트인이에요. 켜지 않으면 기본 모양 그대로예요.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: '이름', width: 120, filter: { menu: false } },
{ id: 'dept', title: '부서', width: 130 },
{
id: 'hired',
title: '입사일',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log({
ko: '깔때기를 눌러 팝업 크기와 값 목록을 바꿔 보세요. 이름 컬럼은 menu: false라서 깔때기가 없고 필터 행 칸만 있어요.',
en: 'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
});
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
{
ko: value === 'wide' ? '팝업 너비 480px' : '팝업 너비 기본',
en: value === 'wide' ? 'Popup width 480px' : 'Popup width default',
},
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
{
ko: value === 'tall' ? '값 목록 높이 360px' : '값 목록 높이 기본',
en: value === 'tall' ? 'Value list height 360px' : 'Value list height default',
},
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
{
ko: value === 'first' ? '(비어 있음)을 맨 위에' : '(비어 있음)은 기본 위치',
en: value === 'first' ? 'Empty value first' : 'Empty value at the default place',
},
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
{
ko: value === 'on' ? '입사일 값 목록이 연>월>일 트리예요' : '값 목록이 평평해요',
en: value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
},
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say({
ko: value === 'tall' ? '필터 행 높이 56px' : '필터 행 높이 기본',
en: value === 'tall' ? 'Filter row height 56px' : 'Filter row height default',
});
},
};버튼을 누르면 이 예제의 코드가 StackBlitz나 CodeSandbox로 전송돼요. 누르기 전에는 아무것도 보내지 않아요.
<script setup lang="ts">
import { onBeforeUnmount, shallowRef } from 'vue';
import { Grid, type GridApi } from '@maxgrid/vue';
import { actions, options, setup, type Row } from './example';
const api = shallowRef<GridApi<Row> | null>(null);
let stop: (() => void) | undefined;
function onReady(event: { api: GridApi<Row> }) {
api.value = event.api;
stop = setup(event.api, console.log);
}
onBeforeUnmount(() => stop?.());
</script>
<template>
<div class="toolbar">
<select
aria-label="팝업 너비"
:disabled="!api"
@change="api && actions.width(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>기본</option>
<option value="wide">480px</option>
</select>
<select
aria-label="값 목록 높이"
:disabled="!api"
@change="api && actions.height(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>기본</option>
<option value="tall">360px</option>
</select>
<select
aria-label="(비어 있음) 위치"
:disabled="!api"
@change="api && actions.blank(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>기본(맨 아래)</option>
<option value="first">맨 위</option>
</select>
<select
aria-label="날짜 값 목록"
:disabled="!api"
@change="api && actions.tree(api, ($event.target as HTMLSelectElement).value)"
>
<option value="off" selected>평평하게</option>
<option value="on">연>월>일 트리</option>
</select>
<select
aria-label="필터 행 높이"
:disabled="!api"
@change="api && actions.rowHeight(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>기본</option>
<option value="tall">56px</option>
</select>
</div>
<Grid style="height: 520px" :options="options" @ready="onReady" />
</template>import type { GridApi, GridOptions } from '@maxgrid/vue';
export type LogText = string | { ko: string; en: string };
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = ['김민준', '이서연', '박지호', '최유나', '정도윤', '한소희'];
const depts = ['개발팀', '디자인팀', '영업팀', '인사팀', null];
// 팝업 크기(width, height), 빈 값 위치(blankPosition), 날짜 값 목록의 연>월>일 트리(valueTree),
// 필터 행 높이(filterRowHeight)는 모두 옵트인이에요. 켜지 않으면 기본 모양 그대로예요.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: '이름', width: 120, filter: { menu: false } },
{ id: 'dept', title: '부서', width: 130 },
{
id: 'hired',
title: '입사일',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log({
ko: '깔때기를 눌러 팝업 크기와 값 목록을 바꿔 보세요. 이름 컬럼은 menu: false라서 깔때기가 없고 필터 행 칸만 있어요.',
en: 'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
});
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
{
ko: value === 'wide' ? '팝업 너비 480px' : '팝업 너비 기본',
en: value === 'wide' ? 'Popup width 480px' : 'Popup width default',
},
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
{
ko: value === 'tall' ? '값 목록 높이 360px' : '값 목록 높이 기본',
en: value === 'tall' ? 'Value list height 360px' : 'Value list height default',
},
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
{
ko: value === 'first' ? '(비어 있음)을 맨 위에' : '(비어 있음)은 기본 위치',
en: value === 'first' ? 'Empty value first' : 'Empty value at the default place',
},
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
{
ko: value === 'on' ? '입사일 값 목록이 연>월>일 트리예요' : '값 목록이 평평해요',
en: value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
},
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say({
ko: value === 'tall' ? '필터 행 높이 56px' : '필터 행 높이 기본',
en: value === 'tall' ? 'Filter row height 56px' : 'Filter row height default',
});
},
};버튼을 누르면 이 예제의 코드가 StackBlitz나 CodeSandbox로 전송돼요. 누르기 전에는 아무것도 보내지 않아요.
import { Component, OnDestroy } from '@angular/core';
import { GridComponent, isGridEvent, type GridApi, type GridEventMessage } from '@maxgrid/angular';
import { actions, options, setup, type Row } from './example';
@Component({
selector: 'app-example-grid',
standalone: true,
imports: [GridComponent],
template: `
<div class="toolbar">
<select
aria-label="팝업 너비"
[disabled]="!api"
(change)="api && actions.width(api, $any($event.target).value)"
>
<option value="default" selected>기본</option>
<option value="wide">480px</option>
</select>
<select
aria-label="값 목록 높이"
[disabled]="!api"
(change)="api && actions.height(api, $any($event.target).value)"
>
<option value="default" selected>기본</option>
<option value="tall">360px</option>
</select>
<select
aria-label="(비어 있음) 위치"
[disabled]="!api"
(change)="api && actions.blank(api, $any($event.target).value)"
>
<option value="default" selected>기본(맨 아래)</option>
<option value="first">맨 위</option>
</select>
<select
aria-label="날짜 값 목록"
[disabled]="!api"
(change)="api && actions.tree(api, $any($event.target).value)"
>
<option value="off" selected>평평하게</option>
<option value="on">연>월>일 트리</option>
</select>
<select
aria-label="필터 행 높이"
[disabled]="!api"
(change)="api && actions.rowHeight(api, $any($event.target).value)"
>
<option value="default" selected>기본</option>
<option value="tall">56px</option>
</select>
</div>
<mx-grid style="height: 520px" [options]="options" [events]="relayed" (gridEvent)="onEvent($event)" />
`,
})
export class ExampleGridComponent implements OnDestroy {
readonly options = options;
readonly actions = actions;
readonly relayed = ['ready'] as const;
api: GridApi<Row> | null = null;
private stop: (() => void) | null = null;
onEvent(event: GridEventMessage<Row>): void {
if (isGridEvent(event, 'ready')) {
this.api = event.payload.api;
this.stop = setup(this.api, console.log);
}
}
ngOnDestroy(): void {
this.stop?.();
}
}import type { GridApi, GridOptions } from '@maxgrid/angular';
export type LogText = string | { ko: string; en: string };
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = ['김민준', '이서연', '박지호', '최유나', '정도윤', '한소희'];
const depts = ['개발팀', '디자인팀', '영업팀', '인사팀', null];
// 팝업 크기(width, height), 빈 값 위치(blankPosition), 날짜 값 목록의 연>월>일 트리(valueTree),
// 필터 행 높이(filterRowHeight)는 모두 옵트인이에요. 켜지 않으면 기본 모양 그대로예요.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: '이름', width: 120, filter: { menu: false } },
{ id: 'dept', title: '부서', width: 130 },
{
id: 'hired',
title: '입사일',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log({
ko: '깔때기를 눌러 팝업 크기와 값 목록을 바꿔 보세요. 이름 컬럼은 menu: false라서 깔때기가 없고 필터 행 칸만 있어요.',
en: 'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
});
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
{
ko: value === 'wide' ? '팝업 너비 480px' : '팝업 너비 기본',
en: value === 'wide' ? 'Popup width 480px' : 'Popup width default',
},
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
{
ko: value === 'tall' ? '값 목록 높이 360px' : '값 목록 높이 기본',
en: value === 'tall' ? 'Value list height 360px' : 'Value list height default',
},
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
{
ko: value === 'first' ? '(비어 있음)을 맨 위에' : '(비어 있음)은 기본 위치',
en: value === 'first' ? 'Empty value first' : 'Empty value at the default place',
},
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
{
ko: value === 'on' ? '입사일 값 목록이 연>월>일 트리예요' : '값 목록이 평평해요',
en: value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
},
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say({
ko: value === 'tall' ? '필터 행 높이 56px' : '필터 행 높이 기본',
en: value === 'tall' ? 'Filter row height 56px' : 'Filter row height default',
});
},
};When you click, the example code is sent to StackBlitz or CodeSandbox. Nothing is sent before you click.
<div id="app">
<div class="toolbar">
<select aria-label="Popup width" id="width">
<option value="default" selected>Default</option>
<option value="wide">480px</option>
</select>
<select aria-label="Value list height" id="height">
<option value="default" selected>Default</option>
<option value="tall">360px</option>
</select>
<select aria-label="Empty value position" id="blank">
<option value="default" selected>Default (bottom)</option>
<option value="first">Top</option>
</select>
<select aria-label="Date value list" id="tree">
<option value="off" selected>Flat</option>
<option value="on">Year > month > day tree</option>
</select>
<select aria-label="Filter row height" id="rowHeight">
<option value="default" selected>Default</option>
<option value="tall">56px</option>
</select>
</div>
<div id="grid" style="height: 520px"></div>
</div>
<script type="module" src="./main.js"></script>import { createGrid } from 'maxgrid';
import { actions, options, setup } from './example';
const api = createGrid(document.getElementById('grid'), options);
setup(api, console.log);
document.getElementById('width').addEventListener('change', (event) => actions.width(api, event.target.value));
document.getElementById('height').addEventListener('change', (event) => actions.height(api, event.target.value));
document.getElementById('blank').addEventListener('change', (event) => actions.blank(api, event.target.value));
document.getElementById('tree').addEventListener('change', (event) => actions.tree(api, event.target.value));
document.getElementById('rowHeight').addEventListener('change', (event) => actions.rowHeight(api, event.target.value));const names = [
'Liam Carter',
'Emma Stone',
'Noah Kim',
'Olivia Park',
'Ethan Brooks',
'Sophia Lee',
];
const depts = ['Dev', 'Design', 'Sales', 'HR', null];
let menu = {};
export const options = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: 'Name', width: 130, filter: { menu: false } },
{ id: 'dept', title: 'Dept', width: 130 },
{
id: 'hired',
title: 'Hired',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6],
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say = () => { };
export function setup(_api, log) {
say = log;
menu = {};
log('Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.');
}
function set(api, patch, text) {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api, value) => set(api, { width: value === 'wide' ? 480 : undefined }, value === 'wide' ? 'Popup width 480px' : 'Popup width default'),
height: (api, value) => set(api, { height: value === 'tall' ? 360 : undefined }, value === 'tall' ? 'Value list height 360px' : 'Value list height default'),
blank: (api, value) => set(api, { blankPosition: value === 'first' ? 'first' : undefined }, value === 'first' ? 'Empty value first' : 'Empty value at the default place'),
tree: (api, value) => set(api, { valueTree: value === 'on' }, value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat'),
rowHeight: (api, value) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say(value === 'tall' ? 'Filter row height 56px' : 'Filter row height default');
},
};<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Size the filter popup and shape the value list</title>
</head>
<body>
<div class="toolbar">
<select aria-label="Popup width" id="width">
<option value="default" selected>Default</option>
<option value="wide">480px</option>
</select>
<select aria-label="Value list height" id="height">
<option value="default" selected>Default</option>
<option value="tall">360px</option>
</select>
<select aria-label="Empty value position" id="blank">
<option value="default" selected>Default (bottom)</option>
<option value="first">Top</option>
</select>
<select aria-label="Date value list" id="tree">
<option value="off" selected>Flat</option>
<option value="on">Year > month > day tree</option>
</select>
<select aria-label="Filter row height" id="rowHeight">
<option value="default" selected>Default</option>
<option value="tall">56px</option>
</select>
</div>
<div id="grid" style="height: 520px"></div>
<ul id="log" aria-live="polite"></ul>
<script src="https://cdn.maxmine.com/maxgrid/latest/maxgrid.min.js"></script>
<script>
const names = [
'Liam Carter',
'Emma Stone',
'Noah Kim',
'Olivia Park',
'Ethan Brooks',
'Sophia Lee',
];
const depts = ['Dev', 'Design', 'Sales', 'HR', null];
let menu = {};
const options = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: 'Name', width: 130, filter: { menu: false } },
{ id: 'dept', title: 'Dept', width: 130 },
{
id: 'hired',
title: 'Hired',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6],
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say = () => { };
function setup(_api, log) {
say = log;
menu = {};
log('Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.');
}
function set(api, patch, text) {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
const actions = {
width: (api, value) => set(api, { width: value === 'wide' ? 480 : undefined }, value === 'wide' ? 'Popup width 480px' : 'Popup width default'),
height: (api, value) => set(api, { height: value === 'tall' ? 360 : undefined }, value === 'tall' ? 'Value list height 360px' : 'Value list height default'),
blank: (api, value) => set(api, { blankPosition: value === 'first' ? 'first' : undefined }, value === 'first' ? 'Empty value first' : 'Empty value at the default place'),
tree: (api, value) => set(api, { valueTree: value === 'on' }, value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat'),
rowHeight: (api, value) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say(value === 'tall' ? 'Filter row height 56px' : 'Filter row height default');
},
};
options.ariaLabel = "Size the filter popup and shape the value list";
const api = MaxGrid.createGrid(document.getElementById('grid'), options);
setup(api, (message) => {
const item = document.createElement('li');
item.textContent =
typeof message === 'string' ? message : navigator.language.startsWith('ko') ? message.ko : message.en;
document.getElementById('log').prepend(item);
});
document.getElementById('width').addEventListener('change', (event) => actions.width(api, event.target.value));
document.getElementById('height').addEventListener('change', (event) => actions.height(api, event.target.value));
document.getElementById('blank').addEventListener('change', (event) => actions.blank(api, event.target.value));
document.getElementById('tree').addEventListener('change', (event) => actions.tree(api, event.target.value));
document.getElementById('rowHeight').addEventListener('change', (event) => actions.rowHeight(api, event.target.value));
</script>
</body>
</html>When you click, the example code is sent to StackBlitz or CodeSandbox. Nothing is sent before you click.
import { useEffect } from 'react';
import { Grid, useGridApi } from '@maxgrid/react';
import { actions, options, setup, type Row } from './example';
export function ExampleGrid() {
const [api, gridRef] = useGridApi<Row>();
useEffect(() => (api ? setup(api, console.log) : undefined), [api]);
return (
<>
<div className="toolbar">
<select
aria-label="Popup width"
disabled={!api}
onChange={(event) => api && actions.width(api, event.target.value)}
>
<option value="default">Default</option>
<option value="wide">480px</option>
</select>
<select defaultValue="default"
aria-label="Value list height"
disabled={!api}
onChange={(event) => api && actions.height(api, event.target.value)}
>
<option value="default">Default</option>
<option value="tall">360px</option>
</select>
<select defaultValue="default"
aria-label="Empty value position"
disabled={!api}
onChange={(event) => api && actions.blank(api, event.target.value)}
>
<option value="default">Default (bottom)</option>
<option value="first">Top</option>
</select>
<select defaultValue="default"
aria-label="Date value list"
disabled={!api}
onChange={(event) => api && actions.tree(api, event.target.value)}
>
<option value="off">Flat</option>
<option value="on">Year > month > day tree</option>
</select>
<select defaultValue="off"
aria-label="Filter row height"
disabled={!api}
onChange={(event) => api && actions.rowHeight(api, event.target.value)}
>
<option value="default">Default</option>
<option value="tall">56px</option>
</select>
</div>
<Grid style={{ height: 520 }} ref={gridRef} options={options} />
</>
);
}import type { GridApi, GridOptions } from '@maxgrid/react';
export type LogText = string;
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = [
'Liam Carter',
'Emma Stone',
'Noah Kim',
'Olivia Park',
'Ethan Brooks',
'Sophia Lee',
];
const depts = ['Dev', 'Design', 'Sales', 'HR', null];
// Popup size (width, height), blank position (blankPosition), the year > month > day tree of date value lists (valueTree),
// and the filter row height (filterRowHeight) are all opt-in. Unless turned on, the default look stays.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: 'Name', width: 130, filter: { menu: false } },
{ id: 'dept', title: 'Dept', width: 130 },
{
id: 'hired',
title: 'Hired',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log(
'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
);
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
value === 'wide' ? 'Popup width 480px' : 'Popup width default',
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
value === 'tall' ? 'Value list height 360px' : 'Value list height default',
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
value === 'first' ? 'Empty value first' : 'Empty value at the default place',
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say(value === 'tall' ? 'Filter row height 56px' : 'Filter row height default');
},
};When you click, the example code is sent to StackBlitz or CodeSandbox. Nothing is sent before you click.
<script setup lang="ts">
import { onBeforeUnmount, shallowRef } from 'vue';
import { Grid, type GridApi } from '@maxgrid/vue';
import { actions, options, setup, type Row } from './example';
const api = shallowRef<GridApi<Row> | null>(null);
let stop: (() => void) | undefined;
function onReady(event: { api: GridApi<Row> }) {
api.value = event.api;
stop = setup(event.api, console.log);
}
onBeforeUnmount(() => stop?.());
</script>
<template>
<div class="toolbar">
<select
aria-label="Popup width"
:disabled="!api"
@change="api && actions.width(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>Default</option>
<option value="wide">480px</option>
</select>
<select
aria-label="Value list height"
:disabled="!api"
@change="api && actions.height(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>Default</option>
<option value="tall">360px</option>
</select>
<select
aria-label="Empty value position"
:disabled="!api"
@change="api && actions.blank(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>Default (bottom)</option>
<option value="first">Top</option>
</select>
<select
aria-label="Date value list"
:disabled="!api"
@change="api && actions.tree(api, ($event.target as HTMLSelectElement).value)"
>
<option value="off" selected>Flat</option>
<option value="on">Year > month > day tree</option>
</select>
<select
aria-label="Filter row height"
:disabled="!api"
@change="api && actions.rowHeight(api, ($event.target as HTMLSelectElement).value)"
>
<option value="default" selected>Default</option>
<option value="tall">56px</option>
</select>
</div>
<Grid style="height: 520px" :options="options" @ready="onReady" />
</template>import type { GridApi, GridOptions } from '@maxgrid/vue';
export type LogText = string;
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = [
'Liam Carter',
'Emma Stone',
'Noah Kim',
'Olivia Park',
'Ethan Brooks',
'Sophia Lee',
];
const depts = ['Dev', 'Design', 'Sales', 'HR', null];
// Popup size (width, height), blank position (blankPosition), the year > month > day tree of date value lists (valueTree),
// and the filter row height (filterRowHeight) are all opt-in. Unless turned on, the default look stays.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: 'Name', width: 130, filter: { menu: false } },
{ id: 'dept', title: 'Dept', width: 130 },
{
id: 'hired',
title: 'Hired',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log(
'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
);
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
value === 'wide' ? 'Popup width 480px' : 'Popup width default',
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
value === 'tall' ? 'Value list height 360px' : 'Value list height default',
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
value === 'first' ? 'Empty value first' : 'Empty value at the default place',
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say(value === 'tall' ? 'Filter row height 56px' : 'Filter row height default');
},
};When you click, the example code is sent to StackBlitz or CodeSandbox. Nothing is sent before you click.
import { Component, OnDestroy } from '@angular/core';
import { GridComponent, isGridEvent, type GridApi, type GridEventMessage } from '@maxgrid/angular';
import { actions, options, setup, type Row } from './example';
@Component({
selector: 'app-example-grid',
standalone: true,
imports: [GridComponent],
template: `
<div class="toolbar">
<select
aria-label="Popup width"
[disabled]="!api"
(change)="api && actions.width(api, $any($event.target).value)"
>
<option value="default" selected>Default</option>
<option value="wide">480px</option>
</select>
<select
aria-label="Value list height"
[disabled]="!api"
(change)="api && actions.height(api, $any($event.target).value)"
>
<option value="default" selected>Default</option>
<option value="tall">360px</option>
</select>
<select
aria-label="Empty value position"
[disabled]="!api"
(change)="api && actions.blank(api, $any($event.target).value)"
>
<option value="default" selected>Default (bottom)</option>
<option value="first">Top</option>
</select>
<select
aria-label="Date value list"
[disabled]="!api"
(change)="api && actions.tree(api, $any($event.target).value)"
>
<option value="off" selected>Flat</option>
<option value="on">Year > month > day tree</option>
</select>
<select
aria-label="Filter row height"
[disabled]="!api"
(change)="api && actions.rowHeight(api, $any($event.target).value)"
>
<option value="default" selected>Default</option>
<option value="tall">56px</option>
</select>
</div>
<mx-grid style="height: 520px" [options]="options" [events]="relayed" (gridEvent)="onEvent($event)" />
`,
})
export class ExampleGridComponent implements OnDestroy {
readonly options = options;
readonly actions = actions;
readonly relayed = ['ready'] as const;
api: GridApi<Row> | null = null;
private stop: (() => void) | null = null;
onEvent(event: GridEventMessage<Row>): void {
if (isGridEvent(event, 'ready')) {
this.api = event.payload.api;
this.stop = setup(this.api, console.log);
}
}
ngOnDestroy(): void {
this.stop?.();
}
}import type { GridApi, GridOptions } from '@maxgrid/angular';
export type LogText = string;
export interface Row {
id: number;
name: string;
dept: string | null;
hired: Date | null;
}
const names = [
'Liam Carter',
'Emma Stone',
'Noah Kim',
'Olivia Park',
'Ethan Brooks',
'Sophia Lee',
];
const depts = ['Dev', 'Design', 'Sales', 'HR', null];
// Popup size (width, height), blank position (blankPosition), the year > month > day tree of date value lists (valueTree),
// and the filter row height (filterRowHeight) are all opt-in. Unless turned on, the default look stays.
type Menu = {
width?: number;
height?: number;
blankPosition?: 'first' | 'last';
valueTree?: boolean;
};
let menu: Menu = {};
export const options: GridOptions<Row> = {
filterMenu: menu,
filterRow: true,
columns: [
{ id: 'name', title: 'Name', width: 130, filter: { menu: false } },
{ id: 'dept', title: 'Dept', width: 130 },
{
id: 'hired',
title: 'Hired',
kind: 'date',
width: 150,
formatValue: (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : ''),
},
],
rows: Array.from({ length: 36 }, (_, i) => ({
id: i + 1,
name: names[i % 6] as string,
dept: depts[(i * 3) % 5] ?? null,
hired: i % 9 === 8 ? null : new Date(2022 + (i % 3), (i * 5) % 12, 3 + ((i * 7) % 24)),
})),
rowKey: 'id',
};
let say: (message: LogText) => void = () => {};
export function setup(_api: GridApi<Row>, log: (message: LogText) => void) {
say = log;
menu = {};
log(
'Press a funnel and try the size and value list settings. The Name column has menu: false, so it has no funnel, only its filter row cell.',
);
}
function set(api: GridApi<Row>, patch: Menu, text: LogText): void {
menu = { ...menu, ...patch };
api.closeFilterMenu();
api.setOptions({ filterMenu: { ...menu } });
say(text);
}
export const actions = {
width: (api: GridApi<Row>, value?: string) =>
set(
api,
{ width: value === 'wide' ? 480 : undefined },
value === 'wide' ? 'Popup width 480px' : 'Popup width default',
),
height: (api: GridApi<Row>, value?: string) =>
set(
api,
{ height: value === 'tall' ? 360 : undefined },
value === 'tall' ? 'Value list height 360px' : 'Value list height default',
),
blank: (api: GridApi<Row>, value?: string) =>
set(
api,
{ blankPosition: value === 'first' ? 'first' : undefined },
value === 'first' ? 'Empty value first' : 'Empty value at the default place',
),
tree: (api: GridApi<Row>, value?: string) =>
set(
api,
{ valueTree: value === 'on' },
value === 'on' ? 'Hired values are a year > month > day tree' : 'Value lists are flat',
),
rowHeight: (api: GridApi<Row>, value?: string) => {
api.setOptions({ filterRowHeight: value === 'tall' ? 56 : undefined });
say(value === 'tall' ? 'Filter row height 56px' : 'Filter row height default');
},
};