본문으로 건너뛰기Skip to content
예제 첫화면Examples home

눌러 보고, 고쳐 보고, 복사해 가세요Click it, tweak it, copy it

맥스그리드가 할 수 있는 일을 예제로 모았어요. 위에서 바로 써 보고, 아래 코드를 복사해서 내 화면에 붙여 넣으세요.Everything MaxGrid can do, as examples. Try each one live, then copy the code below into your own page.

507개의 예제 examples

처음이라면 여기부터New here? Start with these

입문Beginner JSON 데이터로 표 만들기Build a table from JSON 서버에서 받은 데이터(JSON)를 읽어 그대로 표에 넣어요. 행 수를 100개에서 2만 개까지 바꿔 보고, 지역·상품별로 묶어서 볼 수도 있어요.Read a JSON response with JSON.parse and pass it straight to rows. Try 100 up to 20,000 rows, and group by city or product. #JSON#rows#기본#JSON#rows#grouping 입문Beginner 한 줄짜리 기본 헤더와 넓은 표A plain header on a wide table 가장 기본적인 한 줄 헤더예요. 2년치 월별 매출처럼 컬럼이 25개나 되어도, 왼쪽 지역 컬럼은 고정하고 나머지는 가로로 스크롤해서 볼 수 있어요.The simplest one-line header. Even with 25 columns of monthly sales, the Region column stays pinned while you scroll the rest sideways. #header#pinned#wide table#header#pinned#wide table 입문Beginner 맨 아래에 합계 줄 붙이기Add a total row at the bottom 컬럼마다 "무엇을 계산할지"만 적어 두면 표 맨 아래에 합계 줄이 생겨요. 합계 말고도 평균, 최소, 최대, 개수를 고를 수 있어요.Say what to calculate for each column and a total row appears at the bottom. Besides the sum you can pick average, minimum, maximum or count. #summary#aggregate#footer#summary#aggregate#footer 입문Beginner 마우스를 올리면 나오는 말풍선Tooltips that appear on hover 헤더에는 설명 말풍선을, 셀에는 컬럼마다 다른 내용의 말풍선을 달 수 있어요. 어떤 컬럼은 말풍선을 빼고, 뜨는 시간도 정할 수 있어요.Headers can carry a help tooltip and cells can show different content per column, or none at all. You can also set how soon it appears. #tooltip#headerTooltip#말풍선#tooltip#headerTooltip#tooltipDelay 입문Beginner 작업을 단계별로 펼쳐 보는 일정표A project schedule you can open level by level 겹쳐 있는 데이터(하위 항목이 안에 든 JSON)를 한 번 펴서 넣으면 단계가 있는 표가 돼요. 화살표로 가지를 열고 닫고, 보이는 단계도 한 번에 고를 수 있어요.Flatten nested JSON (children) once and pass it in to get a table with levels. Open and close branches with the arrow, or pick how many levels to show at once. #tree#children#flatten#tree#children#flatten 입문Beginner 줄을 묶고 합계 보기: 지역 → 채널Group rows and see totals: region, then channel 같은 값끼리 줄을 묶으면 묶음 줄에 합계가 나와요. 묶는 순서를 바꾸고, 몇 단계까지 열지 고르고, 그룹 체크박스로 한 번에 고를 수 있어요.Rows with the same value gather under a group row with totals. Change the grouping order, choose how many levels are open, and tick a group to select all its rows. #grouping#setGroupBy#aggregate#grouping#setGroupBy#aggregate

기능별로 둘러보기Browse by feature

그리드 기본Grid basics 80

데이터를 표로 보여 주는 가장 기본기The core of showing data as a table

입문Beginner JSON 데이터로 표 만들기Build a table from JSON 서버에서 받은 데이터(JSON)를 읽어 그대로 표에 넣어요. 행 수를 100개에서 2만 개까지 바꿔 보고, 지역·상품별로 묶어서 볼 수도 있어요.Read a JSON response with JSON.parse and pass it straight to rows. Try 100 up to 20,000 rows, and group by city or product. #JSON#rows#기본#JSON#rows#grouping 입문Beginner 자바스크립트 배열 그대로 보여 주기Show a plain JavaScript array 페이지 안에 있는 배열을 서버 요청 없이 그대로 표에 넣어요. 배열을 바꾸고 다시 넘기면 표가 곧바로 따라와요.Pass an array that already lives in the page to rows, no request needed. Change the array, call setRows, and the table follows. #array#배열#setRows#array#setRows 입문Beginner 같은 값은 세로로 합쳐 보여 주기Merge equal values down a column 위아래로 같은 값이 이어지면 한 칸으로 합쳐요. 합치지 않고 첫 줄에만 값을 보이게 할 수도 있고, 어느 쪽이든 값 위치를 첫 줄이나 가운데로 고를 수 있어요.Equal values stacked in a column become one cell, or keep the cells and show the value only on the first row. Either way, put the value on the first row or in the center. #merge#병합#rowspan#merge#rowspan#header group 활용Intermediate 앞 칸이 같은 구간 안에서만 합치기Merge only inside the group to its left '공통'이 여러 팀에 나와도 팀을 넘어서 합치지 않아요. 팀이 같은 구간 안에서만 합치고, 합친 칸을 고치면 묶음 전체에 한 번에 반영할 수도 있어요.A 'Shared' value that appears in several teams is merged only within each team. Editing a merged cell can also apply to the whole block. #merge#병합#mergeWithin#merge#mergeWithin#edit 활용Intermediate 옆 칸이 같으면 가로로 합치기Merge equal neighbours across a row 근무표처럼 같은 줄에서 이웃한 값이 같으면 한 칸으로 합쳐요. 합칠 줄을 조건으로 정할 수도 있어서, 휴가 중인 줄은 그대로 둘 수 있어요.In a shift table, equal neighbours on a row become one cell. A condition decides which rows merge, so vacation rows can stay as they are. #merge#병합#mergeCols#merge#mergeCols 입문Beginner 왼쪽·오른쪽 컬럼 붙여 두기Pin columns to the left and right 컬럼이 많아 가로로 스크롤해도 거래처 이름은 왼쪽에, 합계는 오른쪽에 그대로 남아요. 몇 개를 붙일지 직접 바꿔 볼 수 있어요.Scroll sideways through many columns while the customer stays on the left and the total on the right. Change how many are pinned. #pinned#고정 컬럼#frozen#pinned#frozen#pinColumn 입문Beginner 위쪽 줄 붙여 두기Pin rows to the top 합계·평균 같은 요약 줄을 맨 위에 붙여 두면, 아래로 스크롤해도 헤더 바로 밑에 그대로 보여요. 정렬할 때 이 줄을 같이 정렬할지도 고를 수 있어요.Pin summary rows such as total and average under the header so they stay visible while scrolling. Choose whether sorting moves them too. #pinned#고정 행#pinnedRows#pinned#pinnedRows#sort 활용Intermediate 위쪽 줄과 왼쪽 컬럼을 같이 붙이기Pin rows and columns together 합계 줄은 위에, 구분·품목 컬럼은 왼쪽에 붙여요. 가로세로로 어느 쪽으로 스크롤해도 기준이 되는 줄과 컬럼이 항상 눈앞에 남아요.Totals pinned on top, group and item columns pinned on the left. Scroll either way and your reference rows and columns stay in view. #pinned#고정 행#고정 컬럼#pinned#header group#merge 입문Beginner 엑셀처럼 칸을 끌어서 고르기Drag to pick cells like a spreadsheet 칸을 끌면 구간이 골라지고, Shift+클릭으로 넓히고, Ctrl+클릭으로 구간을 더할 수 있어요. 행 단위·한 칸 단위·선택 끄기도 설정 한 줄로 바꿔요.Drag to pick a block of cells, widen it with Shift+click and add another block with Ctrl+click. Row-only, single-cell and no-selection modes are one setting away. #selection#cellSelection#선택#selection#cellSelection#Shift 입문Beginner 칸을 우클릭해서 복사·붙여넣기·메모 쓰기Right-click a cell to copy, paste and add notes 칸에서 마우스 오른쪽 버튼을 누르면 잘라내기·복사·붙여넣기·메모 메뉴가 떠요. 복사한 글은 엑셀에 그대로 붙고, 엑셀에서 복사한 칸도 바로 붙여넣을 수 있어요.Right-click a cell for cut, copy, paste and note commands. Copied text pastes straight into Excel, and cells copied from Excel paste right back in. #copy#paste#note#copy#paste#note 입문Beginner 마우스를 올리면 행이 켜질까, 칸이 켜질까?Highlight the row, the cell, or nothing on hover 마우스를 올렸을 때 행 전체를 칠할지, 칸 하나만 칠할지, 아무것도 안 칠할지를 설정 하나로 정해요.One setting decides whether the mouse paints the whole row, a single cell, or nothing. #hover#mouse over#마우스 오버#hover#mouse over#hover 입문Beginner 필요한 컬럼만 골라서 보기Show only the columns you need 컬럼을 숨기거나 다시 보이게 해요. 처음부터 숨겨 둔 채 시작할 수도 있고, 헤더 메뉴에서 사용자가 직접 숨길 수도 있어요. 숨겨도 폭과 정렬은 그대로 기억해요.Hide or show columns, start with some hidden, or let users hide them from the header menu. A hidden column keeps its width and sort. #columns#hidden#setColumnVisible#columns#hidden#setColumnVisible 입문Beginner 컬럼 폭을 끌어서 바꾸기Drag to resize columns 헤더 경계를 끌면 폭이 바뀌어요. 고정 컬럼도 되고, 최소·최대 폭과 컬럼별 잠금도 정할 수 있어요. 코드로 지정하거나 내용에 맞춰 한 번에 줄이는 것도 쉬워요.Drag a header border to resize. Pinned columns work too, and min/max widths and per-column locks are supported. You can also set widths in code or fit them to the content. #columns#resize#width#columns#resize#width 입문Beginner 그리드 크기 바꾸기Change the grid size 그리드는 담고 있는 상자의 크기를 그대로 따라가요. 상자의 너비와 높이만 바꾸면 컬럼 폭과 보이는 행 수가 스스로 다시 맞춰져요. 크기를 알려 주는 별도의 호출은 필요 없어요.The grid follows the size of the box that holds it. Change the box's width and height and the column widths and visible rows adjust by themselves. No resize call is needed. #resize#크기#container#resize#container#columnFit 입문Beginner 표가 화면 폭에 딱 맞게 늘어나요Columns stretch to fill the grid width 컬럼 폭을 적어 둔 만큼만 쓰고 오른쪽이 비는 대신, 남는 폭을 컬럼들이 비율대로 나눠 가져 표가 가로로 꽉 차요. 창 크기가 바뀌어도 그대로고, 폭을 지키고 싶은 컬럼은 fixed로 고정해요.Instead of leaving blank space on the right, columns share the leftover width by ratio so the table always fills the grid, even when the window resizes. Pin a column's width with fixed. #columnFit#fill#width#columnFit#fill#width 입문Beginner 헤더를 눌러서 정렬하기Click a header to sort 헤더를 누르면 오름차순 → 내림차순 → 정렬 해제 순서로 바뀌어요. Shift+클릭으로 기준을 더하면 다중 정렬이고, 직급처럼 가나다순이 아닌 순서도 값만 바꿔 정렬할 수 있어요.Clicking a header cycles ascending, descending, off. Shift+click adds another sort key, and custom orders such as job grades only need a ranking value. #sort#sortable#setSortModel#sort#sortable#setSortModel 입문Beginner 조건에 맞는 행과 칸에 색 입히기Style rows and cells by a rule 지역이 서울인 행, 상품이 노트북인 칸, 금액이 100만 원 넘는 칸처럼 조건에 맞는 곳에만 스타일을 입혀요. 조건에 맞으면 스타일 이름만 돌려주고, 색은 CSS가 정해요.Style whole rows or single cells that match a rule, such as a region, a product or a large amount. Return only a style name for matches and CSS decides the look. #style#rowClass#cellClass#style#rowClass#cellClass 활용Intermediate 고객을 열어 주문 내역 보기Open a customer to see their orders 고객 줄 아래에 주문 내역 패널이 펼쳐져요. 여러 개를 동시에 열 수도, 하나만 열 수도, 행을 고를 때마다 상세가 따라오게 할 수도 있어요.A panel with the customer's orders opens right under the row. Open several at once, only one, or let the panel follow the selected row. #master-detail#detail#상세 패널#master-detail#detail#expandDetail 입문Beginner 표에서 고르고 폼으로 고치기Pick in the grid, edit in a form 표에서 줄을 누르면 그 줄 아래에 폼이 열리고 값이 채워져요. 표의 칸은 직접 못 고치게 하고, 폼에서 고친 값을 적용해서 표에 넣어요. 1.6.0부터는 rowEditPanel 옵션으로 같은 일을 더 간단하게 할 수 있어요(예제 "줄을 두 번 눌러 옆 폼에서 고치기" 참고).Click a row and a form opens under it, filled with that row's values. Cells are not editable in the grid; changes are made in the form and applied to the table. From 1.6.0 the rowEditPanel option does the same more simply (see the example "Edit a row in a side form"). #form#폼#detail#form#detail#selection 활용Intermediate 고치면 같이 바뀌는 계산 컬럼Calculated columns that follow your edits 분기별 매출만 저장하고 상반기·하반기·연 매출·최대 분기는 그 줄에서 계산해요. 분기 칸을 고치면 계산 컬럼과 맨 아래 합계 줄이 바로 바뀌어요.Only the quarterly sales are stored. First half, second half, yearly total and best quarter are computed per row, and the total row follows every edit. #getValue#계산 컬럼#aggregate#getValue#aggregate#summary 활용Intermediate 맨 아래까지 내리면 더 불러오기Load more when you reach the bottom 처음에는 100행만 보여 주고, 스크롤이 맨 아래에 닿으면 20행씩 더 받아서 뒤에 이어 붙여요. 받는 동안 같은 요청이 겹치지 않게 막고, 연습용으로 열 번까지만 받아요.Show 100 rows first, then fetch 20 more each time scrolling reaches the bottom and append them. Overlapping requests are blocked, and it stops after ten loads for this demo. #lazy loading#무한 스크롤#addRows#lazy loading#addRows#scrolled 활용Intermediate 내가 맞춘 표 모양 기억해 두기Remember the table layout you set 컬럼 순서·너비·숨김·고정과 정렬, 보고 있던 위치를 저장했다가 다시 열 때 그대로 되돌려요. 이 예제는 브라우저 안에 저장하지만 서버 DB에 저장해도 같은 방식이에요.Save column order, width, visibility and pinning plus sorting and scroll position, and restore them next time. This demo uses localStorage, but a server database works the same way. #state#getColumnState#setColumnState#state#getColumnState#setColumnState 활용Intermediate 고른 칸의 합계와 평균을 바로 보기Instant sum and average of the cells you pick 칸을 끌어서 고르거나 행 번호를 누르면, 고른 칸의 개수·합계·평균·최댓값이 바로 계산돼요. 숫자가 아닌 칸은 알아서 빼고, 나만의 수식도 칸을 읽어서 직접 만들 수 있어요.Drag over cells or click a row number to get the count, sum, average and max of your selection at once. Text cells are skipped, and you can build your own formula from the selected cells. #selection#getCellStats#sum#selection#getCellStats#sum 입문Beginner 버튼으로 행 순서 바꾸기Reorder rows with buttons moveRows와 moveRowsBy로 고른 행을 위·아래·맨 위·맨 아래로 옮겨요. 한 번 옮기면 rowsMoved가 한 번 나오고, 되돌리기로 원래 순서로 돌아가요.moveRows and moveRowsBy move the selected rows up, down, to the top or to the bottom. One call fires rowsMoved once, and undo restores the order. #moveRows#moveRowsBy#rowsMoved#moveRows#moveRowsBy#rowsMoved 활용Intermediate 스크롤바와 휠, 가상화 정하기Choose scrollbars, wheel and virtualization scrollbars로 축마다 스크롤바를 항상 보이거나 숨기고, wheel로 휠을 페이지에 넘기며, virtualize로 가상화를 끄고, tabIndex로 Tab 순서를 정해요. 모두 옵션이고 안 주면 기존과 같아요.scrollbars always shows or hides the bars per axis, wheel hands the wheel to the page, virtualize turns virtualization off and tabIndex sets the Tab order. They are all options; without them nothing changes. #scrollbars#wheel#virtualize#scrollbars#wheel#virtualize 활용Intermediate 내용에 맞춰 자라는 줄 높이Row height that follows the content rowHeight: 'auto'와 컬럼 wrap: true면 긴 글이 줄바꿈되고 줄이 그 높이만큼 자라요. 보이는 줄만 재서 200줄도 가벼워요.With rowHeight: 'auto' and column wrap: true, long text wraps and the row grows to fit. Only visible rows are measured, so 200 rows stay light. #rowHeight#auto#wrap#rowHeight#auto#wrap 활용Intermediate 스크롤해도 행 DOM 순서를 화면 순서로Keep the row DOM in screen order while scrolling 기본은 행 요소를 재사용해서 스크롤하면 DOM 순서가 화면 순서와 달라질 수 있어요. domOrder를 'screen'으로 두면 화면 순서대로 둬요. 포커스를 가진 행은 옮기지 않아요.By default row elements are reused, so after scrolling the DOM order can differ from the screen order. domOrder 'screen' keeps screen order. A row that holds focus is never moved. #domOrder#DOM order#a11y#domOrder#DOM order#a11y 입문Beginner 가나다순과 숫자 순서가 자연스럽게Natural sorting for Korean text and numbers 글자 컬럼은 한글 사전 순서로, '보고서 2'가 '보고서 10'보다 앞에 오는 자연스러운 숫자 순서로 정렬돼요. 같은 값끼리는 원래 순서를 지키고, 악센트 있는 글자는 정렬용 값을 따로 계산해 일반 글자처럼 정렬할 수 있어요.Text columns sort in Korean dictionary order and natural number order, so Report 2 comes before Report 10. Equal values keep their original order, and accented text can sort like plain letters with a computed sort value. #sort#korean#natural#sort#korean#natural 입문Beginner 행 수에 맞춰 자라는 그리드 높이Grid height that follows the row count autoGridHeight: { maxRows: 8 }이면 그리드 높이가 머리글 + 줄 수에 맞춰지고, 8줄이 넘으면 그 높이에서 스크롤해요. 컨테이너가 높이를 정하지 않아도 돼요.With autoGridHeight: { maxRows: 8 } the grid is as tall as the header plus its rows, and scrolls past 8 rows. The container does not need a height. #autoGridHeight#height#그리드 높이#autoGridHeight#height 활용Intermediate 줄마다 다른 높이Different row heights 우선순위가 높은 업무 줄은 크게, 낮은 줄은 작게 보여 줘요. 줄마다 높이를 다르게 정할 수 있어요.High-priority task rows are tall and low-priority rows are short. Each row can have its own height. #rowHeight#refresh#row height#rowHeight#refresh#row height 활용Intermediate 줄 높이를 끌어서 바꾸기Resize rows by dragging rowsResizable을 켜면 행 번호 칸의 아래쪽 가장자리를 끌어 줄 높이를 바꿔요. 두 번 누르면 원래대로, 키보드는 Alt+위/아래 방향키예요. 최소·최대는 옵션으로 정해요.With rowsResizable on, drag the bottom edge of a row number cell to change the row height. Double click restores it, and the keyboard uses Alt+Up or Alt+Down. Minimum and maximum come from the option. #rowsResizable#setRowHeight#getRowHeights#rowsResizable#setRowHeight#getRowHeights 입문Beginner 날짜 정렬: 시각은 무시, 빈 값은 맨 뒤Date sorting: ignore time, empty values last 날짜 컬럼은 몇 시에 주문했는지와 상관없이 날짜만 비교해요. 같은 날 주문은 원래 순서를 지키고, 배송일이 아직 없는 주문은 오름차순·내림차순 어느 쪽으로 정렬해도 맨 뒤에 모여요.Date columns compare calendar dates only, so orders from the same day keep their original order, and rows with no ship date stay at the end in both directions. #sort#date#empty#sort#date#empty 활용Intermediate 정렬 상태를 코드로 바꾸고 저장해 두기Set and save the sort state from code 정렬 상태는 그냥 목록이에요(어느 컬럼을 어느 방향으로, 우선순위 순서로). 코드로 바로 정해 주고, 지금 정렬을 저장해 두었다가 나중에 그대로 불러올 수 있어요. 저장 위치는 브라우저 저장소나 서버, 저장된 보기 어디든 돼요.The sort state is a plain list of columns and directions in priority order. Set it from code, save the current sort and bring it back later; store it in browser storage, a server or a saved view. #sort#setSortModel#getSortModel#sort#setSortModel#getSortModel 입문Beginner 행 선택 방식: 단일·여러 개·체크박스Row selection modes: single, multiple, checkbox 행을 하나만 고르게 하거나, 여러 개를 고르게 하거나, 체크박스 열을 붙일 수 있어요. 선택이 바뀔 때마다 고른 행과 합계를 알려 줄 수 있고, 방식은 쓰는 도중에 바꿀 수도 있어요.Let users pick one row, many rows, or many with a checkbox column. Each change can report the chosen rows and a total, and the mode can be switched while running. #selection#single#multiple#selection#single#multiple 입문Beginner 범위 선택과 머리글 전체 선택Range selection and select all Shift+클릭으로 두 행 사이를 한 번에 고르고, 머리글 체크박스로 전체를 켜고 끌 수 있어요. 일부만 골랐을 때는 머리글 체크박스가 '일부' 모양이 돼요. 같은 일을 코드(범위, 전체, 반전)로도 해요.Shift+click selects everything between two rows and the header checkbox toggles all rows. With a partial selection it shows a mixed state. The same actions (range, all, invert) also work from code. #selection#range#shift#selection#range#shift 활용Intermediate 필터·정렬해도 선택 유지, 저장했다가 복원Keep selection through filter and sort, save and restore 선택은 행마다 붙은 고유 번호로 기억해서, 필터로 가려지거나 정렬로 자리가 바뀌어도 고른 행이 그대로 남아요. 고른 번호를 저장해 두었다가 그대로 다시 고를 수도 있어요.Selection is remembered by each row's unique number, so filtering or sorting does not lose it. You can also save the chosen numbers and pick the same rows again later. #selection#filter#sort#selection#filter#sort 활용Intermediate 조건에 맞는 행만 고르게 하기Let users select only matching rows 결제가 끝난 행처럼 고르면 안 되는 행은 선택이 바뀔 때 걸러 내서 다시 정해요. 잠긴 행은 흐리게 보여 주고, 고를 수 없는 이유는 기록 창에 알려 줘요.Rows that must not be selected, such as paid ones, are filtered out whenever the selection changes. Locked rows are dimmed and the log says why they were skipped. #selection#conditional#rowClass#selection#conditional#rowClass 입문Beginner 키보드만으로 표 돌아다니기Navigate the grid with the keyboard 마우스 없이 방향키로 칸을 옮기고 Space로 행을 고를 수 있어요. 포커스가 옮겨질 때마다 어느 행의 어느 값인지 문장으로 알려 주는 모습을 기록 창에서 볼 수 있고, 화면 낭독기도 같은 정보를 읽어요.Move between cells with the arrow keys and toggle a row with Space, no mouse needed. The log shows the sentence announced for each focus move, which screen readers read too. #keyboard#accessibility#focus#keyboard#accessibility#focus 입문Beginner 코드로 원하는 행·칸으로 이동하기Jump to a row or cell from code 코드로 특정 행의 칸에 포커스를 주면 화면도 그 행으로 스크롤돼요. 2,000행 중 어디든 행 번호만 알면 바로 가고, 맨 위·맨 아래로 가는 것도 한 줄이에요.Focusing a cell from code also scrolls its row into view. With a row number you can reach any of 2,000 rows at once, and jumping to the top or bottom is one line. #focus#focusCell#scrollToIndex#focus#focusCell#scrollToIndex 활용Intermediate 고른 칸을 엑셀로 복사하고 붙여넣기Copy selected cells to Excel and paste back 고른 칸을 탭과 줄바꿈으로 이은 글자로 복사하면 엑셀에 그대로 붙여넣을 수 있어요. 반대로 그런 글자를 표에 붙이면 고른 칸부터 채우고, 값이 안 맞는 칸은 건너뛰며 몇 칸이 바뀌었는지 알려 줘요.Copying selected cells gives tab and newline separated text that pastes straight into Excel. Pasting such text back fills from the selected cell, skips cells whose value does not fit and reports how many changed. #copy#paste#clipboard#copy#paste#clipboard 활용Intermediate 고른 행에 한꺼번에 승인·반려·삭제Approve, reject or delete the selected rows at once 체크박스로 여러 행을 고른 뒤 툴바 버튼으로 한꺼번에 처리하는 화면이에요. 접수 상태인 행만 승인·반려가 되고 나머지는 건너뛰어요. 처리한 결과와 건너뛴 행 수를 기록 창에 알려 줘요.Tick several rows, then act on them all from toolbar buttons. Only received rows can be approved or rejected; others are skipped, and the log reports what changed and what was skipped. #selection#bulk#toolbar#selection#bulk#toolbar 활용Intermediate 행·칸 선택 색 바꾸기Change the row and cell selection colors 선택한 행, 선택한 칸 블록, 처음 누른 칸의 색은 그리드의 CSS 변수라서 몇 줄로 바꿀 수 있어요. 글자색을 섞는 방식(color-mix)으로 정하면 밝은 테마와 어두운 테마 모두에서 잘 읽혀요.The colors of selected rows, the selected cell block and the anchor cell are CSS variables of the grid, so a few lines restyle them. Mixing with the theme color (color-mix) keeps them readable in light and dark themes. #selection#cellSelection#colors#selection#cellSelection#colors 입문Beginner 행을 골라 위·아래로 옮기기Move a selected row up or down 결재선처럼 순서가 곧 데이터인 목록에서, 행을 고른 뒤 버튼으로 한 칸씩 위아래로 옮겨요. 정렬은 꺼 두고, 순서를 바꾼 목록을 새로 넣어서 바꿔요. 옮긴 뒤에도 그 행은 선택된 채로 남아요.For lists where order is the data, such as an approval route, select a row and move it one step with buttons. Sorting is off and the reordered list is put in again. The row stays selected after the move. #rows#reorder#setRows#rows#reorder#setRows 활용Intermediate 10만 행과 100만 행 비교하기Compare 100,000 and 1,000,000 rows 화면에 보이는 줄만 그리기 때문에 10만 행이든 100만 행이든 스크롤은 부드러워요. 크기를 바꿔 행을 넣고, 정렬·필터에 걸리는 시간을 내 컴퓨터에서 직접 재서 비교해 보세요.Only the rows on screen are drawn, so scrolling stays smooth at 100,000 or 1,000,000 rows. Switch the size and measure sorting and filtering on your own machine. #large data#virtual scroll#performance#large data#virtual scroll#performance 활용Intermediate 연체 줄·마이너스 잔액·줄무늬를 조건으로 꾸미기Style overdue rows, credits and stripes by condition 줄과 칸에 조건을 주면 줄무늬, 연체 줄, 마이너스 잔액 같은 모양이 자동으로 붙어요. 상태는 글자로도 적어서 색만으로 구분하지 않고, 성과 이름을 합친 고객 컬럼은 다른 값으로 계산해서 보여 줘요.Conditions on rows and cells add stripes, overdue rows and negative balances automatically. The status is also written as text so color is not the only cue, and the customer column is computed from other fields. #rowClass#cellClass#conditional format#rowClass#cellClass#conditional format 입문Beginner 빈 목록·불러오는 중 안내 문구 바꾸기Change the empty and loading messages 결과가 없을 때와 불러오는 중에 보이는 안내 문구는 언어에 따라 기본 문구가 달라지고, 원하는 말로 직접 바꿔 쓸 수도 있어요. 필터로 가려진 경우와 데이터가 아예 없는 경우 모두 같은 빈 목록 문구가 나와요.The texts for an empty result and for loading follow the language, and you can replace each with your own wording. The same empty text shows whether a filter hides every row or there is no data at all. #empty#loading#messages#empty#loading#messages 입문Beginner 고정된 머리글과 줄 번호Fixed header and row numbers 줄을 스크롤해도 머리글은 맨 위에 그대로 있고, 줄 번호 컬럼은 화면에 보이는 순서를 세요. 그래서 정렬하거나 필터를 걸면 줄 번호가 다시 1번부터 시작해요. 줄 번호는 설정으로 켜고 끌 수 있어요.The header stays on top while the rows scroll, and the row number column counts the lines as shown, so sorting or filtering restarts at 1. Row numbers can be turned on and off with a setting. #header#row numbers#showRowNumbers#header#row numbers#showRowNumbers 입문Beginner 테마(밝게·어둡게)와 칸 여백·줄 높이 바꾸기Switch the theme, cell padding and row height 칸 여백(촘촘·보통·넉넉)은 칸의 좌우 여백을, 줄 높이는 따로 줄 높이를 바꾸고, 테마는 표 안쪽만 밝게나 어둡게 바꿔요. 표 테마를 '사이트 따라가기'로 두면 사이트 설정을 따라가요.Cell padding (compact, normal, comfortable) changes the side gaps, row height changes the line height separately, and the theme switches only the table to light or dark. Follow site goes back to the site setting. #theme#density#dark mode#theme#density#dark mode 입문Beginner 끌어서 행 순서 바꾸기Reorder rows by dragging rowDrag를 켜면 맨 앞에 끌기 손잡이 칸이 생겨요. 손잡이를 끌어 행을 옮기고, 선택한 행은 함께 움직여요. 되돌리기는 한 단계이고 정렬·필터 중에는 끌 수 없어요.With rowDrag on, a drag handle column appears at the front. Drag a handle to move a row; selected rows move together. Undo is one step, and rows cannot be dragged while sorting or filtering. #row drag#drag and drop#reorder#row drag#drag and drop#reorder 입문Beginner 잠긴 행은 선택할 수 없게 하기Make locked rows unselectable isRowSelectable에 "이 행을 골라도 되는지"만 돌려주면 잠긴 행은 클릭, 키보드, 전체 선택 어디서도 선택되지 않아요.Return whether a row may be selected from isRowSelectable and locked rows cannot be selected by click, keyboard or select all. #selection#isRowSelectable#readonly#selection#isRowSelectable#readonly 활용Intermediate 언어팩을 등록하고 화면 언어 바꾸기Register a language pack and switch the grid language 작은 일본어 팩을 그리드에 주고, 한국어·영어·일본어로 바꿔 봐요. 페이저, 필터 줄, 컬럼 메뉴, 합계 줄의 문구가 따라가요.Give the grid a small Japanese pack and switch between Korean, English and Japanese. The pager, filter row, column menu and total row follow. #locale#localePacks#registerLocale#locale#localePacks#registerLocale 입문Beginner 오른쪽에서 왼쪽으로 보기(RTL)Right-to-left layout (RTL) direction: 'rtl'이면 컬럼이 오른쪽부터 놓이고 가로 스크롤, 고정 컬럼, ← → 키, 끌기 방향이 모두 뒤집혀요. 'auto'는 컨테이너의 CSS direction을 따르고 기본은 왼쪽에서 오른쪽이에요.With direction: 'rtl' columns start on the right, and horizontal scrolling, pinned columns, the ← → keys and drag directions all mirror. 'auto' follows the container's CSS direction; the default is left-to-right. #rtl#direction#arabic#rtl#direction#arabic 활용Intermediate 내 색으로 테마 만들기Create a theme from your own colors 색 몇 개만 정하면 나머지 색은 자동으로 계산해서 이 표에만 적용해요. 글자 대비가 모자라면 알려줘요.Pick a few colors and the rest are derived and applied to this grid only. Low text contrast is reported. #theme#createTheme#applyTheme#theme#createTheme#applyTheme 활용Intermediate 셀 값과 목록을 코드로 읽기Read cell values and lists from code getCellValue, getCellText로 칸의 값과 화면 글자를, getDistinctValues, findRows로 목록과 행을, getFilteredRowCount, getSummaryText 등으로 개수와 합계 글자를 읽어요. 모두 읽기 전용이고 모르는 키를 줘도 던지지 않아요.Read a cell's value and displayed text with getCellValue and getCellText, lists and rows with getDistinctValues and findRows, and counts and summary text with getFilteredRowCount and getSummaryText. All are read-only and never throw for unknown keys. #api#getCellValue#getCellText#api#getCellValue#getCellText 입문Beginner 행·칸에 조건부 스타일 주기Conditional styles on rows and cells rowStyle, rowClassRules, cellStyle, cellClassRules, headerStyle로 값에 따라 행과 칸의 모양을 바꾸고, rowTestId로 테스트용 이름을 달아요.Change how rows and cells look by value with rowStyle, rowClassRules, cellStyle, cellClassRules and headerStyle, and tag rows for tests with rowTestId. #rowStyle#rowClassRules#cellStyle#rowStyle#rowClassRules#cellStyle 활용Intermediate 클릭한 칸 찾기와 그려진 줄 범위Find the clicked cell and the rendered line range 어디를 눌러도 locateCell(event)로 칸을 찾고 getCellText로 화면 글자를 읽어요. getVisibleRange, getTopVisibleIndex로 지금 그려진 줄을 알고, 창 밖 칸은 getCellElement가 null이에요.Click anywhere and find the cell with locateCell(event), then read its displayed text with getCellText. getVisibleRange and getTopVisibleIndex tell which lines are rendered, and getCellElement returns null for a cell outside the window. #api#locateCell#getCellElement#api#locateCell#getCellElement 입문Beginner 마우스를 올리면 컬럼도 켜기Highlight the column on hover hover 옵션에 'column'(세로 줄)과 'cross'(가로+세로 십자)를 더해 표를 읽기 쉽게 해요.Add 'column' and 'cross' to the hover option to light up the column or the row and column together. #hover#column#cross#hover#column#cross 입문Beginner 선택한 행을 복사하기Copy the selected rows 행 선택만 켠 그리드에서 Ctrl+C와 copyCells()가 선택한 행을 탭으로 나눈 글자로 복사해요. 엑셀에 바로 붙여 넣을 수 있어요.With row selection only, Ctrl+C and copyCells() copy the selected rows as tab-separated text you can paste straight into a spreadsheet. #copyCells#clipboard#selection#copyCells#clipboard#selection 활용Intermediate 키와 값으로 행을 코드에서 고르기Select rows by key or value from code selectRows로 키 목록을 고르거나 더하고, selectWhere로 값 조건에 맞는 행을 고르고, deselectRows, getSelectedRows, isSelected로 풀거나 읽어요. 잠긴 행은 selectWhere가 건너뛰고 selectRows는 오류로 알려요.Select or add keys with selectRows, select rows matching a value with selectWhere, and deselect or read with deselectRows, getSelectedRows and isSelected. selectWhere skips locked rows while selectRows reports them as an error. #selection#selectRows#selectWhere#selection#selectRows#selectWhere 활용Intermediate 클릭으로 선택하는 방식 바꾸기Change how clicks select rows selection의 clickToggle, checkboxOnly, canDeselect로 클릭 선택 방식을 바꾸고, focusable, textSelectable, cellMultiRange 옵션과 거꾸로 끈 셀 구간(reversed)도 확인해요. 모두 옵트인이고 기본은 그대로예요.Change click selection with the clickToggle, checkboxOnly and canDeselect selection options, and try the focusable, textSelectable and cellMultiRange options and the reversed flag of backwards-dragged cell ranges. All are opt-in; defaults are unchanged. #selection#clickToggle#checkboxOnly#selection#clickToggle#checkboxOnly 활용Intermediate 전체 선택의 범위와 칸 선택Select all scopes and cell selection selectAllRows의 범위(visible, page, filtered, all)에 따라 선택되는 행이 달라지고, selectAllCells와 selectColumnCells로 칸을 한꺼번에 골라요. 페이징과 필터가 있을 때 차이가 드러나요.selectAllRows selects different rows depending on the scope (visible, page, filtered, all), and selectAllCells and selectColumnCells pick cells in bulk. The difference shows with paging and a filter. #selection#selectAllRows#selectAllCells#selection#selectAllRows#selectAllCells 활용Intermediate 내가 만든 비교 함수로 정렬하기Sort with your own comparator 컬럼의 compare(a, b, rowA, rowB)로 정렬 기준을 직접 정해요. 등급은 하 < 중 < 상, 버전은 점으로 나눈 숫자 순서로 비교해요. 내림차순은 부호가 자동으로 뒤집혀요.The column compare(a, b, rowA, rowB) sets the order yourself: grades go low < mid < high, versions compare as dotted numbers. Descending flips the sign automatically. #sort#compare#comparator#sort#compare#comparator 입문Beginner 정렬 순환과 다중 정렬 방식 정하기Choose the sort cycle and multi-sort mode sortCycle로 헤더를 누를 때 도는 순서를 정하고(컬럼마다 따로도 가능), multiSort로 여러 컬럼 정렬 방식을, showUnsortedIcon으로 정렬 전 아이콘을 정해요.sortCycle sets the order a header click goes through (per column too), multiSort the multi-column mode and showUnsortedIcon the idle icon. #sort#sortCycle#multiSort#sort#sortCycle#multiSort 활용Intermediate 문자열 정렬 규칙(콜레이터) 바꾸기Change the string ordering rules (collator) 옵션 sortCollator로 대소문자 순서(caseFirst), 구분 정도(sensitivity), 숫자 자연순(numeric)을 정해요. 옵션을 바꾸면 같은 정렬 모델로 다시 정렬하고, api.getSortCollator()가 지금 콜레이터를 돌려줘요.The sortCollator option sets case order (caseFirst), sensitivity and numeric natural order. Changing it re-sorts with the same sort model, and api.getSortCollator() returns the collator in use. #sort#collator#sortCollator#sort#collator#sortCollator 활용Intermediate 데이터를 새로 넣어도 보던 자리 지키기Keep the view when you load new data setRows(rows, { scroll, keep })로 스크롤 위치, 선택, 포커스, 정렬, 필터, 쪽, 펼침 중 무엇을 남길지 정해요. 기본은 모두 남기고 새 데이터에 없는 키만 정리해요.setRows(rows, { scroll, keep }) decides which of scroll position, selection, focus, sort, filter, page and expansion stay. By default all stay and only keys missing from the new data are dropped. #setRows#keep#scroll#setRows#keep#scroll 활용Intermediate 정렬 중에 줄이 뛰지 않게 행 추가·수정하기Add and edit rows without the sorted rows jumping addRows와 updateRows에 resort: false를 주면 정렬된 상태에서도 새 행은 맨 뒤에, 고친 행은 지금 자리에 머물러요. 정렬이나 필터를 바꾸면 평소 순서로 돌아가요.With resort: false, addRows and updateRows keep a new row at the end and an edited row at its current place even while a sort is active. Changing the sort or filter returns to the normal order. #addRows#updateRows#resort#addRows#updateRows#resort 활용Intermediate 머리글에 포커스 주고 키로 옮기기Focus a header and move with the keys focusHeader()로 머리글에 포커스를 주면 좌우 방향키가 이웃 머리글로, 아래 방향키가 그 컬럼의 첫 셀로, Enter가 정렬 전환으로 동작해요. 탭 정지점은 늘지 않아요.focusHeader() puts focus on a header: Left and Right move to the neighbor, Down goes to the column's first cell and Enter toggles the sort. No tab stop is added. #focusHeader#clearFocus#headerFocused#focusHeader#clearFocus#headerFocused 활용Intermediate Tab이 그리드를 나가지 않게 하기Keep Tab inside the grid hooks.tabOut이 true를 돌려주면 마지막 칸에서 Tab을 눌러도 포커스가 그리드 안에 남아요. hooks.nextCell로 이동 칸을 바꿀 수도 있어요.When hooks.tabOut returns true, Tab on the last cell keeps focus inside. hooks.nextCell can change where a key goes. #tabOut#nextCell#hooks#tabOut#nextCell#hooks 활용Intermediate 코드로 컬럼을 보이게 가로 스크롤하기Scroll a column into view from code scrollToColumn(id, { align })는 가로 스크롤만으로 컬럼을 보이게 해요. 기본은 가장 가까운 자리이고 start·center·end로 맞출 수도 있어요. 고정 컬럼은 건드리지 않아요.scrollToColumn(id, { align }) scrolls horizontally only. The default is the nearest position; start, center and end are available. Pinned columns are left alone. #scrollToColumn#scroll#pinned#scrollToColumn#scroll#pinned 입문Beginner 우클릭 메뉴로 행 고정하기Pin rows from the context menu pinnedRows.menu를 켜면 셀을 우클릭해 그 행을 위나 아래에 고정하거나 풀 수 있어요. isRowPinnable로 고정할 수 없는 행을 정해요(여기서는 영업팀).With pinnedRows.menu on, right-click a cell to pin its row to the top or bottom or unpin it. isRowPinnable decides which rows cannot be pinned (Sales here). #pinnedRows.menu#isRowPinnable#pinnedRowsChanged#pinnedRows.menu#isRowPinnable#pinnedRowsChanged 활용Intermediate 키로 행 고정하고 풀기Pin and unpin rows by key pinRow(key, 'top' | 'bottom')와 unpinRow(key)로 행을 코드로 고정해요. 고정은 위치가 아니라 키를 따라가서 정렬해도 그대로예요. getPinnedRows와 isRowPinned로 상태를 읽어요.pinRow(key, 'top' | 'bottom') and unpinRow(key) pin rows from code. A pin follows the key, not the position, so sorting keeps it. getPinnedRows and isRowPinned read the state. #pinRow#unpinRow#getPinnedRows#pinRow#unpinRow#getPinnedRows 활용Intermediate 데이터 밖의 행을 위·아래에 고정Pin rows from outside the data pinnedRows.top과 bottom에 데이터가 아닌 행(기준 값, 합계 안내)을 넣어요. 행 수·정렬·필터·선택에 들지 않고 스크롤해도 위·아래에 붙어 있어요.Put rows that are not data (reference values, a total note) in pinnedRows.top and bottom. They are not counted, sorted, filtered or selected, and stay on top and bottom while you scroll. #pinnedRows.top#pinnedRows.bottom#외부 행#pinnedRows.top#pinnedRows.bottom 입문Beginner 여유 있는 밀도(spacious)The spacious density density: 'spacious'는 행 48px·머리글 52px·여백 16px에 줄무늬 없이, 세로선은 그대로 두고 둥근 틀과 옅은 그림자로 그려요. 다른 밀도는 그대로예요.density: 'spacious' draws 48px rows, a 52px header and 16px padding, with no stripes and the column lines kept, in a rounded frame with a soft shadow. The other densities are unchanged. #density#spacious#rowHeight#density#spacious#rowHeight 입문Beginner 행이 미끄러지는 움직임Rows that slide motion: true면 정렬·행 추가·삭제에서 행이 제자리로 미끄러지고, 새 행은 나타나며, 지운 행은 사라져요. 필터 메뉴 같은 팝업도 부드럽게 열려요. 기본은 꺼져 있고 모션 줄이기 설정을 따라요.With motion: true rows slide into place on sort, add and remove, new rows fade in and removed rows fade out. Popups such as the filter menu open softly. It is off by default and follows the reduced-motion setting. #motion#animation#움직임#motion#animation#sort 입문Beginner 둥근 아이콘 스타일The soft icon style iconStyle: 'soft'는 정렬 화살표, 트리 화살표, 체크, 닫기 ×, 끌기 손잡이, 별점을 둥근 끝의 선 아이콘으로 바꿔요. 기본은 'default'이고 icons 옵션으로 정한 아이콘은 늘 그대로예요.iconStyle: 'soft' swaps the sort arrows, tree arrows, check marks, close ×, drag grip and rating stars for round-ended line icons. The default is 'default', and icons you set with the icons option always stay as they are. #iconStyle#soft#icons#iconStyle#soft#icons 입문Beginner 행을 옮기면 순서 번호가 따라와요Order numbers follow moved rows orderIndex 옵션을 켜면 행을 옮길 때 옮긴 행의 seq 칸에 앞뒤 번호 사이 값이 자동으로 들어가요. 끌어서 옮기거나 버튼으로 옮겨 보세요.With the orderIndex option, a moved row gets a number between its new neighbors in the seq field automatically. Drag a row or use the buttons. #orderIndex#orderIndexChanged#moveRows#orderIndex#orderIndexChanged#moveRows 활용Intermediate 번호 간격이 모자라면 전체를 다시 매겨요Renumber when the gaps run out 이웃한 번호 차이가 2보다 작아 끼울 자리가 없으면 같은 부모끼리 전체를 10, 20, 30 …으로 다시 매겨요. getOrderGaps로 간격을 보고 renumberOrder로 직접 다시 매길 수도 있어요.When neighboring numbers differ by less than 2 there is no room, so the whole list is renumbered 10, 20, 30 and so on. getOrderGaps shows the gaps and renumberOrder renumbers on demand. #orderIndex#getOrderGaps#renumberOrder#orderIndex#getOrderGaps#renumberOrder 입문Beginner 새 행에 줄 순서 번호 받기Get an order number for a new row nextOrderValue로 맨 앞·맨 뒤·특정 행 뒤에 넣을 새 행의 번호를 받아요. 받은 번호로 addRows의 index 자리에 넣으면 번호 순서와 화면 순서가 맞아요.nextOrderValue returns the number for a new row at the start, at the end or after a given row. Add the row with addRows at the matching index and the number order matches the screen order. #orderIndex#nextOrderValue#addRows#orderIndex#nextOrderValue#addRows 활용Intermediate 트리에서는 형제끼리 번호를 매겨요Order numbers per sibling group in a tree 트리에서 orderIndex 번호는 같은 부모를 가진 형제끼리 따로 매겨요. 행을 위로 옮기거나 들여쓰면 새 형제들 사이에서 번호를 받고, renumberOrder는 부모마다 처음부터 다시 매겨요.In a tree the orderIndex numbers are kept per group of siblings. A row moved up or indented gets a number among its new siblings, and renumberOrder renumbers each parent from the start. #orderIndex#tree#indentRows#orderIndex#tree#indentRows 입문Beginner 부트스트랩·테일윈드·머티리얼 모양 테마Bootstrap, Tailwind and Material look presets 쓰는 사이트의 모양에 맞는 테마를 골라 한 줄로 적용해요. 글꼴은 사이트 글꼴을 그대로 써요.Pick the preset that matches your site and apply it in one line. The grid uses your site's own font. #theme#preset#bootstrap#theme#preset#bootstrap

헤더와 컬럼Headers and columns 51

그룹 헤더, 너비, 숨김 같은 컬럼 설정Group headers, widths and hiding

입문Beginner 한 줄짜리 기본 헤더와 넓은 표A plain header on a wide table 가장 기본적인 한 줄 헤더예요. 2년치 월별 매출처럼 컬럼이 25개나 되어도, 왼쪽 지역 컬럼은 고정하고 나머지는 가로로 스크롤해서 볼 수 있어요.The simplest one-line header. Even with 25 columns of monthly sales, the Region column stays pinned while you scroll the rest sideways. #header#pinned#wide table#header#pinned#wide table 활용Intermediate 헤더에 마우스를 올리면 컬럼 설명이 나와요Show a column description on header hover 컬럼이 무슨 뜻인지 헤더에 마우스를 올리면 말풍선으로 알려 줘요. 터치 화면에서는 헤더를 누르면 떠요. 컬럼 묶음(그룹 헤더)에도 달 수 있고, 설명이 있는 곳만 제목 뒤에 ⓘ가 붙어요.Hover a header for a balloon explaining the column; on touch screens, tap it. Column groups can have one too, and only headers with a description carry an info mark. #header#tooltip#description#header#tooltip#description 입문Beginner 헤더를 년·분기·월로 묶어서 보여 주기Group headers as year, quarter and month 여러 컬럼을 하나의 제목 아래 묶고, 그 묶음을 또 묶어서 3단 헤더를 만들어요. 분기 옆 버튼으로 접고 펼 수도 있어요. 지역 컬럼은 고정이라 가로로 스크롤해도 남아 있어요.Put columns under a shared title and nest groups into a three-level header. Quarters fold with a button, and the pinned Region column stays while you scroll. #header#headerGroups#group header#header#headerGroups#group header 입문Beginner 헤더 높이를 넉넉하게, 또는 촘촘하게Make the header taller or tighter 헤더 높이 설정 하나로 헤더 한 줄의 높이를 정해요. 헤더가 두 단이면 모든 단이 같은 높이로 늘고 줄어요. 제목이 두 줄인 칸은 헤더를 높이면 잘리지 않고 다 보여요.One header height setting sets the height of a header line. With two-level headers every level grows and shrinks together. Raise it and a two-line title is no longer cut off. #header#headerHeight#height#header#headerHeight#height 입문Beginner 제목 줄 없이 목록만 보여 주기Show a list without a header row 알림이나 로그처럼 컬럼 제목이 필요 없는 목록은 헤더 줄을 감추면 더 깔끔해요. 필요하면 언제든 다시 보이게 할 수 있어요.For notices or logs that need no column titles, hiding the header row looks cleaner. Bring it back any time. #header#hide header#헤더 숨김#header#hide header#showHeader 활용Intermediate 눈에 띄는 헤더만 골라서 꾸미기Style only the headers that matter 지역, 1분기, 2월처럼 강조하고 싶은 헤더만 색과 글자를 바꿔요. 컬럼과 그룹 정의에 스타일 이름만 적으면 되고, 색은 테마 색을 써서 밝은 화면과 어두운 화면 모두에서 읽혀요.Restyle only the headers that matter, such as Region, Q1 and February. Just name a style on the column or group; colors come from the theme so they read in light and dark. #header#style#CSS#header#style#CSS 입문Beginner 긴 헤더 제목을 두 줄로 나누기Break a long header title into two lines 제목이 길면 컬럼이 넓어지는 대신 줄바꿈으로 두 줄로 나눠 보여요. 제목에 줄바꿈을 넣고 헤더 높이만 키우면 돼요.Instead of widening a column for a long title, split it into two lines. Add a line break to the title and make the header taller. #header#multi-line#line break#header#multi-line#line break 활용Intermediate 컬럼이 1,000개여도 부드럽게A thousand columns, still smooth 지표가 1,000개나 되는 아주 넓은 표도 화면에 보이는 컬럼만 그려서 빠르게 움직여요. 번호는 왼쪽, 합계는 오른쪽에 고정해 두면 가로로 멀리 가도 어느 줄인지 알 수 있어요.Even a table with 1,000 metric columns stays fast because only the visible columns are drawn. Pinning the No. left and the total right keeps rows readable while you scroll far. #columns#virtual#pinned#columns#virtual#pinned 입문Beginner 헤더를 끌어 컬럼 순서 바꾸고, 잠그기Drag headers to reorder columns, and lock them 헤더를 끌면 컬럼 순서가 바뀌어요. '번호'처럼 움직이면 안 되는 컬럼은 movable: false로 잠그고, 폭 조절을 막거나 표 전체를 한 번에 잠글 수도 있어요. 코드로 옮기는 것은 잠금과 상관없이 돼요.Drag a header to reorder columns. Lock a column such as ID with movable: false, or lock all moving and resizing at once. Moving by code is never blocked. #columns#move#movable#columns#move#movable 입문Beginner 컬럼을 왼쪽·오른쪽에 고정하기Pin columns to the left or the right 번호와 고객사는 왼쪽에, 합계는 오른쪽에 고정하고 가운데 월별 컬럼만 가로로 스크롤해요. 코드로 컬럼을 더 고정하거나 풀 수도 있어요.Pin No and Customer to the left and H1 total to the right while the monthly columns in the middle scroll. Pin or unpin more columns from code. #columns#pinned#freeze#columns#pinned#freeze 입문Beginner 컬럼 폭을 비율로 나누기Split column widths by ratio 작업 5 : 담당 2 : 상태 2 : 번호 1처럼 비율로 폭을 나누고 싶을 때는, 가진 폭을 비율대로 계산해서 컬럼마다 폭을 넣어요. 남는 폭을 알아서 나눠 가지게 하는 방법은 '가로 스크롤 없이 폭 맞추기' 예제를 보세요.To lay columns out as a ratio such as 5:2:2:1, work out each width from the space you have and set it per column. To let columns share leftover width automatically, see the fit-width example. #columns#width#ratio#columns#width#ratio 활용Intermediate 보기 모드로 컬럼 구성 한 번에 바꾸기Switch column layouts with view presets '전체', '매출 보기', '인사 보기'처럼 미리 정해 둔 컬럼 구성을 한 번에 바꿔요. 어떤 컬럼을 어떤 순서로, 고정할지까지 한 줄로 적어 두면 돼요. 합계는 지금 보이는 달만 더해서 숨기면 따라서 바뀌어요.Switch between ready-made column layouts such as All, Sales and People in one step. A preset lists which columns show, in what order and pinned or not. The total adds only the months currently shown. #columns#preset#setColumnState#columns#preset#setColumnState 입문Beginner 컬럼 붙이고 빼기Add and remove columns 컬럼 정의를 통째로 바꿔서 컬럼을 늘리거나 줄여요. 같은 컬럼은 사용자가 바꾼 폭·순서·고정을 그대로 지키고, 새 컬럼은 맨 끝에 붙어요.Replace the whole column list to grow or shrink it. Existing columns keep the width, order and pin the user chose, and new ones are added at the end. #columns#setColumns#add#columns#setColumns#add 활용Intermediate 내가 맞춘 컬럼 배치를 저장하고 불러오기Save and restore your column layout 폭을 바꾸고, 순서를 옮기고, 숨기고, 고정한 컬럼 배치를 JSON 하나로 저장했다가 나중에 한 번에 되돌려요. 처음 상태로 초기화하는 것도 한 줄이에요. 저장하는 곳은 브라우저 저장소여도, 서버나 파일이어도 돼요.Save the widths, order, hidden and pinned state of your columns as one JSON and restore it later in one step. Resetting to the defaults is one call. Store it in browser storage, a server or a file. #columns#state#getColumnState#columns#state#getColumnState 입문Beginner 값을 원·%·kg·날짜로 보여 주기Show values as dollars, percent, kg and dates 숫자와 날짜를 읽기 좋은 글자로 바꿔 보여 줘요. 보이는 모양만 바뀌고 원래 값은 그대로라서 정렬과 필터는 숫자·날짜 기준으로 정확히 동작해요.Numbers and dates are shown as readable text. Only the display changes; the raw value stays, so sorting and filtering still work on numbers and dates. #columns#formatValue#format#columns#formatValue#format 입문Beginner 헤더 ⋮ 메뉴로 정렬·고정·숨기기Sort, pin and hide from the header menu 설정 한 줄로 헤더마다 ⋮ 메뉴가 생겨요. 정렬, 왼쪽·오른쪽 고정, 숨기기, 자동 맞춤, 컬럼 선택, 초기화가 들어 있고, 컬럼 설정(정렬 불가, 폭 고정, 최대 폭)에 따라 메뉴가 알아서 달라져요.One setting adds a ⋮ menu to every header with sort, pin left or right, hide, auto fit, column chooser and reset. The menu adapts to column settings such as not sortable, fixed width or maximum width. #columns#columnMenu#pin#columns#columnMenu#pin 입문Beginner 컬럼 정렬 방향과 세로 줄무늬Column alignment and vertical stripes 컬럼의 글자 방향(왼쪽·가운데·오른쪽)을 정하면 헤더와 셀이 함께 움직여요. 한 칸씩 건너뛰며 같은 모양을 주면 세로 줄무늬가 돼서 줄을 따라 읽기 쉬워요.A column's text direction moves header and cells together. Giving every other column the same look makes vertical stripes that help the eye follow a row. #columns#align#cellClass#columns#align#cellClass 활용Intermediate 필요한 명령만 담은 나만의 컬럼 메뉴Your own column menu with only the commands you want 기본 ⋮ 메뉴 대신 필요한 명령(고정, 맨 앞으로, 더 넓게, 숨기기)만 담은 메뉴를 직접 만들어요. 메뉴는 내 화면이라 컬럼을 바꾸는 기능만 불러 쓰면 돼요. 기본 메뉴의 언어를 바꾸는 법도 함께 보여 줘요.Build your own menu with only the commands you need (pin, move first, widen, hide) instead of the default ⋮ menu. The menu is your own UI and just calls the column functions. It also shows how to change the default menu's language. #columns#custom menu#pinColumn#columns#custom menu#pinColumn 입문Beginner 셀에 마우스를 올리면 말풍선Tooltips on cells 컬럼에서 말풍선을 켜면 셀에 마우스를 올릴 때(터치는 누를 때) 설명이 떠요. '켬'은 보이는 글자 전체를 보여 줘서 잘린 글을 읽을 수 있고, 행마다 다른 설명을 달 수도 있어요.Turn on a column's tooltip and a bubble appears on hover (or press on touch). Plain on shows the full cell text for cut-off values, and each row can have its own text. #columns#tooltip#tooltipDelay#columns#tooltip#tooltipDelay 입문Beginner 헤더 언어 바꾸기Switch the header language 컬럼 번호표(id)는 그대로 두고 제목과 금액 표기만 다른 언어로 바꾸면, 사용자가 바꾼 폭·순서·고정은 그대로 남아요.Keep the column ids and swap the titles and the amount format to another language: the widths, order and pins the user set stay. #columns#i18n#title#columns#i18n#title 활용Intermediate 컬럼이 바뀔 때 누가 바꿨는지 알기Know who changed a column 컬럼의 폭·순서·고정·숨김이 바뀔 때마다 기록 창에 알려 줘요. 마우스, 키보드, 헤더 메뉴, 코드 중 어디서 바꿨는지도 함께 나와요. 사용자가 직접 한 선택만 저장하고 싶을 때, 코드가 한 변경과 구분하는 데 써요.Width, order, pin and visibility changes raise events that say whether they came from pointer, keyboard, menu or code (source). Use it to keep only the user's own choices as preferences. #columns#events#source#columns#events#source 활용Intermediate 다른 컬럼으로 계산한 합계 컬럼Computed total columns 다른 값을 더하거나 곱해서 만든 컬럼은 자기 데이터가 따로 없어요. 그래도 일반 컬럼처럼 정렬·필터가 되고, 원본 값이 바뀌면 같이 바뀌어요.A column built from other values has no data of its own, yet it sorts and filters like any column and follows when the source values change. #columns#getValue#computed#columns#getValue#computed 입문Beginner 헤더 글자를 실행 중에 바꾸기Change header text at runtime 헤더 글자는 컬럼 정의의 제목이라서, 그 컬럼의 제목만 바꿔 다시 넣으면 돼요. 폭·순서·고정은 그대로 남아요. 월이 바뀔 때 '3월 지급액'처럼 제목을 갈아 끼울 때 쓸 수 있어요.A header's text is the column's title, so put the list in again with only that title changed; width, order and pin stay. Handy when a title such as March payout ($) must change over time. #columns#header#title#columns#header#title 입문Beginner 컬럼 기본값을 한 번에 정하기Set column defaults once columnDefaults로 모든 컬럼에 같은 기본 정의를 깔고, 컬럼이 직접 적은 값만 따로 정해요. defaultColumnWidth로 폭을 안 적은 컬럼의 폭도 한 번에 정해요.columnDefaults lays one default definition under every column, and a column only states what differs. defaultColumnWidth sets the width of columns that give none. #columnDefaults#defaultColumnWidth#기본값#columnDefaults#defaultColumnWidth 입문Beginner 이름 붙인 컬럼 종류로 묶어 쓰기Reuse column types by name columnTypes에 정의 묶음에 이름을 붙이고 컬럼의 type에 적어서 여러 컬럼에 같은 모양을 줘요. 이름 목록은 왼쪽부터 덮고, 컬럼이 직접 적은 값이 마지막에 이겨요.Name a bundle of column settings in columnTypes and reference it from a column type. A list applies left to right and the column own values win last. #columnTypes#type#emptyAs#columnTypes#type#emptyAs 입문Beginner 데이터에서 컬럼 자동으로 만들기Build columns from the data columns를 비우고 autoColumns를 켜면 첫 행들의 키로 컬럼을 만들고 값을 보고 숫자·날짜·참거짓 종류를 정해요. exclude로 뺄 키를 고르고 template으로 공통 정의를 덮어요.Leave columns empty and set autoColumns to build columns from the keys of the first rows, with number, date or boolean kinds inferred from the values. exclude drops keys and template adds shared settings. #autoColumns#inferKind#자동 컬럼#autoColumns#inferKind 활용Intermediate 컬럼 폭을 코드로 재고 맞추기Measure and fit column widths from code measureColumns로 내용에 맞는 폭을 재고, autoSizeColumns로 한 번에 적용하고, fitColumnsToWidth로 남는 폭을 flex 비율대로 나눠요. 컬럼마다 fitWidth·autoSize·flex로 동작을 정해요.measureColumns reads the content width, autoSizeColumns applies it in one go and fitColumnsToWidth shares the spare width by flex weight. fitWidth, autoSize and flex tune each column. #measureColumn#measureColumns#autoSizeColumns#measureColumn#measureColumns#autoSizeColumns 활용Intermediate 컬럼 하나만 끼워 넣기Insert a single column addColumn은 컬럼 정의 전체를 바꾸지 않고 하나만 더해요. 위치(index)와 헤더 그룹(groupId)을 고르고, fill을 켜면 defaultValue를 기존 행에 채워요. 지금까지 더하고 뺀 컬럼은 getAddedColumns/getRemovedColumns로 알 수 있어요.addColumn adds one column without replacing the whole list. Pick the position (index) and header group (groupId); fill writes defaultValue into existing rows. getAddedColumns and getRemovedColumns tell what changed so far. #addColumn#removeColumn#defaultValue#addColumn#removeColumn#defaultValue 활용Intermediate 합친 칸의 복사 글자 정하기Choose the copy text of merged cells 컬럼의 mergeCopy는 세로로 합친 구간을 복사할 때의 글자를 정해요. 'all'은 칸마다 자기 글자(기본), 'first'는 구간의 첫 줄만 쓰고 덮인 줄은 빈 글자, 'repeat'는 첫 줄 글자를 모든 줄에 반복해요. 'first'로 복사한 글자를 붙여넣을 때 덮인 줄의 빈 글자는 값을 지우지 않아요.The mergeCopy of a column sets the text used when a vertically merged span is copied. 'all' copies each cell's own text (default), 'first' writes only the first row and leaves the covered rows empty, and 'repeat' repeats the first row's text on every row. When text copied with 'first' is pasted back, an empty text on a covered row does not clear its value. #merge#mergeCopy#copy#merge#mergeCopy#copy 활용Intermediate 컬럼 설정 일부만 바꾸기Patch part of a column updateColumn은 컬럼 정의의 일부만 얕게 합쳐 바꿔요. id와 key는 바꿀 수 없고, 사용자가 끈 폭·순서·고정은 그대로 남아요. columnsChanged의 updated에 바뀐 id가 실려요.updateColumn shallow-merges a patch into one column definition. id and key cannot change, and the width, order and pin the user chose stay. columnsChanged carries the changed id in updated. #updateColumn#columnsChanged#updated#updateColumn#columnsChanged#updated 활용Intermediate 합친 칸을 구간 전체로 선택하기Select a merged span as a whole selection.mergeSelect가 'span'이면 합친 구간의 어느 칸을 골라도, 끌어서 일부만 덮어도 구간 전체가 선택돼요(세로·가로 병합 모두). 'cell'(기본)은 누른 칸만이에요. selection.mergeCheck를 켜면 체크 칸을 구간의 첫 줄에만 그리고 누르면 구간의 모든 줄을 함께 선택·해제해요.With selection.mergeSelect 'span', choosing any cell of a merged span, or dragging over part of it, selects the whole span (vertical and horizontal merges). 'cell' (default) selects only the pressed cell. selection.mergeCheck draws the check cell only on the first row of a span and selects or clears every row of it. #merge#mergeSelect#mergeCheck#merge#mergeSelect#mergeCheck 활용Intermediate 컬럼을 다른 그룹으로 옮기기Move a column to another group moveColumnToGroup은 컬럼을 헤더 그룹 사이로 옮기거나(null이면 그룹에서 빼요) getParentGroup으로 지금 속한 그룹을 물어봐요. 그룹의 마지막 컬럼이 빠지면 빈 그룹은 사라져요.moveColumnToGroup moves a column between header groups (null takes it out) and getParentGroup tells which group it is in. A group that loses its last column disappears. #moveColumnToGroup#getParentGroup#headerGroups#moveColumnToGroup#getParentGroup#headerGroups 입문Beginner 합친 구간을 코드로 묻기Ask for merged spans in code getMergeSpan(rowKey, columnId)는 칸이 속한 병합 구간 { rows, cols, start }를 돌려주고 합치지 않은 칸은 null이에요. 구간의 모든 칸이 같은 start를 돌려줘요. isMerged는 병합 여부만 돌려주고요. 구간은 보이는 행 전체에서 계산하고 정렬·필터가 바뀌면 다시 계산해요.getMergeSpan(rowKey, columnId) returns the merged span { rows, cols, start } of a cell, or null for an unmerged cell. Every cell of a span returns the same start, and isMerged returns only whether the cell is merged. Spans are computed over all visible rows and recalculated when the sort or filter changes. #merge#getMergeSpan#isMerged#merge#getMergeSpan#isMerged 입문Beginner 고정 컬럼을 한 번에 정하기Set the pinned columns at once pinColumns는 왼쪽·오른쪽 고정 컬럼 전체를 한 번에 정해요. 적은 순서가 영역 안 순서이고, 이름이 없는 컬럼은 고정이 풀려요. showAllColumns는 숨긴 컬럼을 한꺼번에 다시 보여요.pinColumns sets the whole pinned set in one call. The given order is the order inside each zone, and unnamed columns are unpinned. showAllColumns brings every hidden column back. #pinColumns#showAllColumns#고정 컬럼#pinColumns#showAllColumns 입문Beginner 머리글에 버튼 넣기Put a button in a header 컬럼의 headerRenderer: 'button'은 머리글 제목 옆에 버튼을 넣어요. label, onClick, position, disabled를 headerRendererParams로 줘요. 버튼을 눌러도 정렬·끌기·크기 조절·메뉴는 일어나지 않고, 정렬이 꺼진 컬럼은 머리글에 포커스를 둔 채 Enter·Space로도 눌러요.A column's headerRenderer: 'button' puts a button next to the header title. label, onClick, position and disabled go in headerRendererParams. Pressing it does not sort, drag, resize or open the menu, and on a column without sorting Enter and Space press it while the header is focused. #headerRenderer#button#headerRendererParams#headerRenderer#button#headerRendererParams 활용Intermediate 컬럼 숨김·이동·고정 잠그기Lock hiding, moving and pinning locked로 컬럼마다 숨김(visible)·이동(position)·고정(pin)을 막아요. 메뉴 항목은 사라지지 않고 흐려지고, API는 invalid-option을 던지고, 저장한 상태를 복원해도 잠긴 속성은 지금 그대로예요.locked blocks hiding (visible), moving (position) and pinning (pin) per column. Menu items are dimmed instead of removed, the API throws invalid-option, and restoring a saved state keeps locked properties as they are. #locked#lockVisible#lockPosition#locked#lockVisible#lockPosition 활용Intermediate 머리글 체크박스로 전체 바꾸기Change everything with a header checkbox headerRenderer: 'checkbox'는 머리글에 체크박스를 넣어요. checked(불리언 또는 함수, 'indeterminate' 가능), onChange, canCheck, position을 headerRendererParams로 줘요. 앱 상태가 바뀌면 api.setHeaderRendererParams로 알려 다시 그려요.headerRenderer: 'checkbox' puts a checkbox in the header. checked (a boolean or a function, 'indeterminate' allowed), onChange, canCheck and position go in headerRendererParams. When your state changes, api.setHeaderRendererParams makes the grid redraw it. #headerRenderer#checkbox#indeterminate#headerRenderer#checkbox#indeterminate 활용Intermediate 그룹을 접고 펼 때 컬럼 보이기Show columns when a group is open or closed showWhen으로 헤더 그룹을 펼쳤을 때만(groupOpen), 접었을 때만(groupClosed) 보이는 컬럼을 정해요. 급여 그룹을 접으면 세부 컬럼이 사라지고 합계 하나만 남아요.showWhen makes a column visible only while its header group is open (groupOpen) or closed (groupClosed). Closing the Pay group hides the detail columns and leaves one total. #showWhen#groupOpen#groupClosed#showWhen#groupOpen#groupClosed 심화Advanced 직접 만든 머리글 렌더러A custom header renderer headerRenderer에 함수를 주면 머리글 안에 직접 만든 요소를 넣어요. 함수는 mount(el, ctx)·update(ctx)·destroy()를 가진 객체를 돌려줘요. 폭·순서를 바꿔 머리글을 다시 그려도 mount는 한 번이고 update만 불려 같은 요소가 새 칸으로 옮겨져요. 컬럼이 없어지면 destroy가 불려요.Give headerRenderer a function to put your own element in the header. The function returns an object with mount(el, ctx), update(ctx) and destroy(). When the header is redrawn for a width or order change, mount runs once and only update is called, moving the same element to the new cell. destroy runs when the column goes away. #headerRenderer#adapter#mount#headerRenderer#adapter#mount 입문Beginner 머리글 제목 바로 고치기Edit a header title in place headerRendererParams: { editable: true }를 주면 제목을 두 번 눌러 그 자리에서 고쳐요. Enter나 포커스를 잃으면 확정되어 updateColumn(id, { title })가 불리고 headerRenamed 이벤트가 와요. Esc는 취소, 빈 글자와 같은 글자는 바뀌지 않으며 한글 조합 중 Enter·Esc는 무시해요.With headerRendererParams: { editable: true } a double click on the title edits it in place. Enter or losing focus commits it: updateColumn(id, { title }) is called and a headerRenamed event arrives. Esc cancels, empty or same text changes nothing, and Enter and Esc during an IME composition are ignored. #headerRenamed#editable#rename#headerRenamed#editable#rename 입문Beginner 긴 머리글 줄바꿈과 자동 머리글 높이Wrapping long headers with automatic header height wrapHeader: true인 컬럼은 제목이 줄바꿈되고, headerHeight: 'auto'면 가장 높은 제목에 맞춰 머리글이 자라요.A column with wrapHeader: true wraps its title, and headerHeight: 'auto' grows the header to the tallest title. #headerHeight#wrapHeader#auto#headerHeight#wrapHeader#auto 활용Intermediate 머리글 안 드롭다운Dropdown inside a header headerRenderer: 'dropdown'은 머리글에 목록 버튼을 둬요. 고른 값은 onSelect로 앱에 전달되고 이 예제는 그 값으로 행을 걸러요. applyToTitle이면 버튼에 컬럼 제목과 고른 이름이 함께 나와요.headerRenderer: 'dropdown' puts a list button in the header. The chosen value reaches the app through onSelect, and this example filters the rows with it. With applyToTitle the button shows the column title together with the chosen name. #headerRenderer#dropdown#headerDropdownChanged#headerRenderer#dropdown#headerDropdownChanged 심화Advanced 행 하나를 여러 줄로 보여 주기(밴드 본문)One row on several lines (band body) bodyLayout의 bands로 데이터 행 하나를 두 줄로 그려요. 첫 줄 컬럼의 폭이 슬롯을 정하고 bandSpan으로 둘째 줄 칸이 여러 슬롯을 차지해요. 머리글도 줄마다 한 단이에요.bodyLayout.bands draws one data row on two lines. The widths of the first-line columns make the slots and bandSpan lets a second-line cell take several slots. The header has one layer per line. #bodyLayout#bandSpan#band#bodyLayout#bandSpan#band 심화Advanced 밴드 본문에서 편집하기Editing in a band body 밴드 본문의 칸도 일반 칸처럼 편집돼요. 편집기는 그 칸이 놓인 줄과 슬롯 위에 뜨고, 값 검사·변경 추적·되돌리기가 그대로 동작해요.Band body cells edit like any other cell. The editor opens over the cell's own line and slots, and validation, change tracking and undo work as usual. #bodyLayout#editing#band#bodyLayout#editing#band 입문Beginner 칸 하나에 스타일 얹기Style a single cell setCellStyle(rowKey, columnId, { className, style })는 칸 하나에 클래스와 스타일을 얹고 null로 지워요. 행 키와 컬럼 id로 보관해서 정렬·필터·쪽 나누기를 거쳐도 같은 칸을 따라가요.setCellStyle(rowKey, columnId, { className, style }) layers a class and styles on one cell, and null removes it. It is kept by row key and column id, so it follows the cell through sort, filter and paging. #setCellStyle#getCellStyle#clearCellStyles#setCellStyle#getCellStyle#clearCellStyles 활용Intermediate 머리글 제목 고치기와 상태 저장Edit header titles and save them in the column state titleEditable로 머리글 제목을 두 번 눌러(또는 F2) 고치면, 바뀐 제목이 getColumnState()의 title에 실려요. setColumnState로 복원하고 resetColumnState로 처음 제목으로 돌아와요.With titleEditable you can edit a header title by double-clicking it (or F2). The changed title goes into the title of getColumnState(); setColumnState restores it and resetColumnState brings back the initial titles. #columns#titleEditable#headerRenamed#columns#titleEditable#headerRenamed 활용Intermediate 조건에 맞는 칸만 꾸미기Style the cells that match a rule 데이터를 읽어 조건에 맞는 칸만 setCellStyles로 한꺼번에 꾸며요(다시 그리기는 한 번). 점수를 고치면 그 칸만 setCellStyle로 다시 판단해요. 콜백(cellStyle)과 달리 앱이 원하는 때에 원하는 칸만 정해요.Read your data and style only the matching cells in one setCellStyles call (a single repaint). When a score is edited only that cell is re-evaluated with setCellStyle. Unlike a cellStyle callback, the app decides when and which cells. #setCellStyles#clearCellStyles#editCommitted#setCellStyles#clearCellStyles#editCommitted 입문Beginner 좁아지면 일부 컬럼 숨기기Hide some columns when the grid gets narrow responsiveColumns를 켜고 컬럼에 hideBelow(px)를 주면, 그리드가 담긴 상자가 그 폭보다 좁아질 때 그 컬럼이 숨고 다시 넓어지면 돌아와요. 사용자가 숨긴 컬럼은 그대로 숨어 있고, 폭 때문에 숨은 컬럼은 저장본에 남지 않아요.Turn on responsiveColumns and give columns hideBelow (px). When the box that holds the grid gets narrower than that, the column hides, and it returns when there is room again. Columns the user hid stay hidden, and columns hidden by width are not written to the saved state. #responsiveColumns#hideBelow#columnsResponsiveChanged#responsiveColumns#hideBelow#columnsResponsiveChanged 입문Beginner 컬럼 도구 모음으로 컬럼 숨기고 옮기기Hide and reorder columns with the column toolbar columnToolbar를 켜면 그리드 위나 아래에 컬럼마다 칩이 하나 생겨요. 칩을 누르면(Space·Enter) 컬럼이 보이거나 숨고, 칩을 끌거나 Alt+←/→를 누르면 컬럼 순서가 바뀌어요. 숨긴 칩은 흐리게 보이고 각 칩은 aria-pressed로 상태를 알려요.Turn on columnToolbar and a strip above or below the grid shows one chip per column. Press a chip (Space or Enter) to hide or show the column, and drag a chip or press Alt+Left/Right to reorder. Hidden chips are dimmed and every chip reports its state with aria-pressed. #columnToolbar#chip#setColumnVisible#columnToolbar#chip#setColumnVisible 입문Beginner 그룹을 접어도 남길 컬럼 정하기Choose which column stays when a group collapses 헤더 그룹에 collapsible을 주면 제목 옆 ▾로 접고 펼 수 있고, collapsedKeep에 적은 컬럼은 접어도 남아요. collapseHeaderGroup, expandHeaderGroup, isHeaderGroupCollapsed로 코드에서도 다루고, beforeHeaderGroupToggle이 false를 돌려주면 접기·펴기를 막아요.Give a header group collapsible and it folds with the arrow in its title, and the columns listed in collapsedKeep stay when it folds. Use collapseHeaderGroup, expandHeaderGroup and isHeaderGroupCollapsed from code, and beforeHeaderGroupToggle blocks the toggle when it returns false. #headerGroups#collapsible#collapsedKeep#headerGroups#collapsible#collapsedKeep 입문Beginner 도구 모음과 헤더 그룹·고정 컬럼 함께 쓰기Use the toolbar with header groups and a pinned column 컬럼 도구 모음은 접히는 헤더 그룹, 고정 컬럼과 함께 써요. 앞에 고정한 번호는 칩으로 옮겨도 고정 영역을 벗어나지 않고, 접은 그룹 안의 컬럼은 그룹을 펴기 전까지 접힌 채로 있어요.The column toolbar works with collapsible header groups and a pinned column. The pinned No. column never leaves its zone when you move chips, and a column inside a collapsed group stays folded until you expand the group. #columnToolbar#headerGroups#pinned#columnToolbar#headerGroups#pinned

툴팁Tooltips 5

셀에 마우스를 올리면 보이는 설명Hints shown on hover

입문Beginner 마우스를 올리면 나오는 말풍선Tooltips that appear on hover 헤더에는 설명 말풍선을, 셀에는 컬럼마다 다른 내용의 말풍선을 달 수 있어요. 어떤 컬럼은 말풍선을 빼고, 뜨는 시간도 정할 수 있어요.Headers can carry a help tooltip and cells can show different content per column, or none at all. You can also set how soon it appears. #tooltip#headerTooltip#말풍선#tooltip#headerTooltip#tooltipDelay 활용Intermediate 말풍선 내용을 내 마음대로 만들기Build the tooltip text yourself 셀의 값뿐 아니라 같은 줄의 다른 값, 몇 번째 줄인지, 계산한 금액까지 모아서 여러 줄짜리 말풍선을 만들 수 있어요. 내용은 코드로 정해요.Combine the cell value, other values of the same row, the row number and even a computed amount into a multi-line tooltip. The text is decided in code. #tooltip#말풍선#사용자 정의#tooltip#tooltip function 입문Beginner 잘린 긴 글을 말풍선으로 읽기Read clipped long text in a tooltip 칸이 좁아서 글이 "…"로 잘릴 때, 마우스를 올리면 전체 글을 말풍선으로 보여 줘요. 글이 짧으면 말풍선을 붙이지 않을 수도 있고, 말풍선 글은 항상 글자로만 들어가서 HTML 태그가 있어도 안전해요.When a narrow cell clips text with "…", hovering shows the whole text in a tooltip. Short text can skip the tooltip, and the text always goes in as plain text, so HTML tags are harmless. #tooltip#긴 글#ellipsis#tooltip#ellipsis#sanitize 활용Intermediate 말풍선 위치와 동작 고르기Choose where and how tooltips appear tooltipOptions로 말풍선 위치(대상 기준·마우스 근처·위·아래), 마우스 따라가기, 사라짐 지연, 말풍선 위로 포인터 옮기기, 키보드 표시를 정해요. 컬럼의 tooltipRenderer는 말풍선 안을 DOM으로 채워요.tooltipOptions sets placement (near the target, near the pointer, above, below), pointer following, hide delay, moving the pointer onto the tip and keyboard display. A column's tooltipRenderer fills the tip with DOM. #tooltipOptions#tooltipRenderer#placement#tooltipOptions#tooltipRenderer#placement 활용Intermediate 메모 말풍선만 따로 조정하기Tune only the note tooltip cellNoteOptions { trigger, showDelay, hideDelay }는 셀 메모의 말풍선에만 적용돼요. 컬럼 말풍선(품목 칸·수량 머리글)은 기본 설정 그대로예요. 생략한 값은 tooltipOptions·tooltipDelay를 따라요.cellNoteOptions { trigger, showDelay, hideDelay } applies only to the tooltip of cell notes. Column tooltips (the item cells and the quantity header) keep the default settings. Omitted values follow tooltipOptions and tooltipDelay. #cellNoteOptions#cellNotes#tooltip#cellNoteOptions#cellNotes#tooltip

트리Tree 24

계층 구조와 펼치기·접기Hierarchies with expand and collapse

입문Beginner 작업을 단계별로 펼쳐 보는 일정표A project schedule you can open level by level 겹쳐 있는 데이터(하위 항목이 안에 든 JSON)를 한 번 펴서 넣으면 단계가 있는 표가 돼요. 화살표로 가지를 열고 닫고, 보이는 단계도 한 번에 고를 수 있어요.Flatten nested JSON (children) once and pass it in to get a table with levels. Open and close branches with the arrow, or pick how many levels to show at once. #tree#children#flatten#tree#children#flatten 입문Beginner 평평한 배열을 트리로 보여 주기Show a flat array as a tree 줄마다 부모의 id만 적어 두면 그리드가 알아서 트리로 만들어요. 배열 순서가 섞여 있어도, 자식이 부모보다 앞에 있어도 괜찮아요.Each row only names its parent id and the grid builds the tree. The array order does not matter, even with children before their parents. #tree#flat#parentKey#tree#flat#parentKey 입문Beginner 처음부터 모두 펼쳐서 보여 주기Start with every branch open 트리를 처음 그릴 때 모든 가지를 열어 둘 수 있어요. 펼침 화살표는 첫 컬럼이 아니라 원하는 컬럼(여기서는 "작업")에 붙일 수 있고요.The tree can start fully open. The expand arrow can sit on any column you choose, here "Task", not only the first one. #tree#expandDepth#expandAll#tree#expandDepth#expandAll 활용Intermediate 묶음 헤더가 있는 예산 트리A budget tree with grouped headers 컬럼 위에 "상반기 > 1분기·2분기" 같은 묶음 헤더를 달고, 본부·팀 줄에는 아래 항목의 합계를 보여 줘요. 분기 묶음은 헤더에서 접을 수 있어요.Put grouped headers such as "H1 > Q1, Q2" above the columns, and let department rows show the sum of their items. Quarter groups fold from the header. #tree#header group#aggregate#tree#header group#aggregate 활용Intermediate 시작할 때 열어 둘 가지 정하기Choose which branches start open 처음에는 모두 닫아 두고, 원하는 가지만 열린 상태로 시작할 수 있어요. 열어 둔 줄을 선택까지 해 두면 어디를 보라는 건지 바로 알아봐요.Start closed, then open only the branches you want and select a row so people see where to look. #tree#expandRow#revealRow#tree#expandRow#revealRow 활용Intermediate 폴더를 열 때 안쪽을 가져오기Fetch a folder's contents when it opens 처음에는 맨 위 줄만 보여 주고, 폴더를 처음 열 때 그 폴더의 내용만 서버에서 받아 와요. 비어 있는 폴더나 응답이 실패한 폴더도 알맞게 보여 줘요.Only the top rows load at first; a folder's contents are fetched the first time it opens. Empty folders and failed requests are handled too. #tree#lazy loading#loadChildren#tree#lazy loading#loadChildren 입문Beginner 펼침 아이콘과 안내선 바꾸기Change the expand icons and guide lines 화살표 대신 폴더, +/- 같은 기본 아이콘 세트를 고르거나 열림·닫힘·잎 아이콘을 직접 정할 수 있어요. 들여쓰기 안내선의 종류와 모양도 바꿀 수 있어요.Pick a built-in icon set such as folder or +/-, or define the open, closed and leaf icons yourself. The indent guide lines can change too. #tree#toggleIcon#guides#tree#toggleIcon#guides 활용Intermediate 단계나 담당자에 따라 다른 아이콘 붙이기Different icons by level or owner 작업 이름 앞에 단계에 따라(묶음·폴더·문서) 또는 담당자에 따라 다른 아이콘을 붙여요. 펼침 화살표는 그대로 두고, 정렬과 검색은 아이콘 없이 원래 이름으로 해요.Put a different icon before each task name by level or by owner. The expand arrow stays as is, and sorting and filtering still use the plain name. #tree#icon#formatValue#tree#icon#formatValue 입문Beginner 트리를 정렬해도 가지는 그대로Sorting keeps the branches intact 트리에서 정렬하면 같은 부모를 둔 줄끼리만 순서가 바뀌고, 부모는 자기 자식들을 데리고 함께 움직여요. 그래서 정렬해도 트리 모양은 깨지지 않아요.Sorting a tree reorders only the rows that share a parent, and each parent moves together with its children, so the tree shape never breaks. #tree#sort#sorting#tree#sort#sorting 활용Intermediate 트리에서 값 고치기와 다른 조직 아래로 옮기기Edit values in a tree and move a node under another parent 조직 트리에서 이름과 인원을 직접 고치면 위 단계 합계가 바뀌고, 조직을 고른 다른 조직 아래로 옮겨요. 자기 아래로는 옮길 수 없어요.Edit names and headcounts in an org tree and watch parent sums change; move a unit under another parent. Moving it under itself is refused. #tree#editing#aggregate#tree#editing#aggregate 심화Advanced 10만 줄 트리: 펼치기·찾아가기·검색A 100,000-row tree: expand, jump and search 지역·거점·장비 10만 줄 트리를 열고 접고, 한 장비로 곧바로 찾아가고, 이름으로 검색해요. 보이는 줄만 그려서 많아도 가벼워요.Expand and collapse a 100,000-row region/site/device tree, jump to one device and search by name. Only visible rows are drawn. #tree#big data#expandToDepth#tree#big data#expandToDepth 활용Intermediate 선택한 줄의 부모·자식·조상·자손 찾기Find the parent, children, ancestors and descendants 줄을 하나 골라 두고 버튼을 누르면 그 줄의 부모, 자식, 조상, 자손을 찾아서 펼쳐 보여 주고 선택해 줘요. 평평한 목록이라 "어느 줄의 하위인지" 값만 따라가면 돼요.Pick a row and press a button to find its parent, children, ancestors or descendants; they are revealed and selected. With a flat array you just follow parentId. #tree#parent#children#tree#parent#children 활용Intermediate 트리 검색: 찾은 글자 강조하기Tree search with highlighted matches 안내 글에서 글자를 찾으면 일치하는 줄만 남기고 찾은 글자에 색을 칠해요. 일치하는 줄의 위 단계 줄도 함께 보여요.Search the notes: only matching rows stay and the found text is highlighted. Parent rows of the matches stay visible. #tree#filter#cellRenderer#tree#filter#cellRenderer 활용Intermediate 업무 트리: 폴더 아이콘·가지선·상태 배지·진행 막대Task tree: folder icons, branch lines, status badges and progress bars 폴더 아이콘과 가지선으로 단계를 보여 주고, 다른 컬럼에는 상태 배지와 진행 막대를 그려요. 상태로 걸러 볼 수 있어요.Show levels with folder icons and branch lines, draw status badges and progress bars in other columns, and filter by status. #tree#cellRenderer#badge#tree#cellRenderer#badge 활용Intermediate 트리에서 가족 관계 물어보기Ask the family of a tree row getAncestors, getDescendants, getDepth, getParentRow, isBranch, getMaxDepth는 접힌 행까지 포함해 전체 트리를 읽어요. getTreeRows는 중첩 구조로, filtered를 켜면 필터를 통과한 행과 조상만 돌려줘요.getAncestors, getDescendants, getDepth, getParentRow, isBranch and getMaxDepth read the whole tree, collapsed rows included. getTreeRows returns a nested structure, and with filtered only the rows that pass the filter and their ancestors. #getAncestors#getDescendants#getDepth#getAncestors#getDescendants#getDepth 활용Intermediate 트리에 자식 행 끼워 넣기Insert a child row into a tree addRows(rows, { parent, index })는 새 행의 부모 필드를 맞춰 주고 그 부모의 자식 중 index 자리에 넣어요. resetChildren은 지연 로딩한 자식을 비우고 다시 불러올 수 있게 해요.addRows(rows, { parent, index }) sets the parent field of the new row and inserts it at index among that parent's children. resetChildren clears lazily loaded children so they can load again. #addRows#parent#index#addRows#parent#index 활용Intermediate 부모를 고르면 자식도 함께 고르기Select a parent and its children together tree.checkCascade를 켜면 행을 선택할 때 후손도, 풀 때도 후손이 함께 움직여요. 체크박스에서 후손이 일부만 선택되면 상위 행이 어중간한 표시로 바뀌어요. tree.expandRecursive는 펼칠 때 후손도 펼쳐요.With tree.checkCascade, selecting a row selects its descendants and deselecting does the same. With checkboxes a parent shows a mixed state when only some descendants are selected. tree.expandRecursive expands all descendants at once. #checkCascade#expandRecursive#expandWhen#checkCascade#expandRecursive#expandWhen 활용Intermediate 트리에서 끌어서 자식으로 놓기Drag a row to become a child in a tree 트리에서 rowDrag의 dropAsChild를 켜면 행의 가운데에 놓아 자식으로 만들 수 있어요. 위·아래는 앞·뒤이고, 자기 후손 아래로는 놓을 수 없어요.In a tree, rowDrag with dropAsChild lets you drop on the middle of a row to make a child. Top and bottom mean before and after, and a row cannot be dropped under its own descendant. #row drag#tree#child#row drag#tree#child 활용Intermediate 트리에서 행을 다른 부모 아래로 옮기기Move rows under another parent in a tree moveRows의 childOf·before·index로 조직을 다른 부모 아래나 원하는 자리로 옮겨요. 가지째 움직이고, 자기 자손 안으로는 옮길 수 없어요.moveRows with childOf, before or index moves units under another parent or to a place you choose. The branch goes along, and a move into your own descendants is refused. #moveRows#tree#childOf#moveRows#tree#childOf 입문Beginner 들여쓰기와 내어쓰기Indent and outdent indentRows는 앞 형제의 마지막 자식으로, outdentRows는 부모의 다음 형제로 단계를 한 칸씩 바꿔요. 앞 형제가 없는 행과 최상위 행은 건너뛰어요.indentRows makes a row the last child of its previous sibling and outdentRows makes it the next sibling of its parent, one level at a time. Rows without a previous sibling and top-level rows are skipped. #indentRows#outdentRows#moveRowsBy#indentRows#outdentRows#moveRowsBy 입문Beginner 트리를 펼칠 때의 움직임Motion when a tree opens motion: true면 트리 화살표가 돌고, 펼치거나 접을 때 아래 줄들이 제자리로 미끄러져요. 기본은 꺼져 있어요.With motion: true the tree arrow turns and the rows below slide into place when a branch opens or closes. It is off by default. #motion#tree#expand#motion#tree#expand 심화Advanced 자식을 쪽으로 나눠 불러오기: 더 보기Paged lazy children: Load more treeChildrenPaging으로 폴더를 펼치면 첫 쪽만 오고, 아래 "더 보기" 줄을 눌러 다음 쪽을 받아요.With treeChildrenPaging a folder loads only its first page; press the "Load more" line below it for the next page. #treeChildrenPaging#tree#lazy#treeChildrenPaging#tree#lazy 심화Advanced 자식을 쪽으로 나눠 불러오기: 스크롤하면 저절로Paged lazy children: infinite scroll mode: 'infinite'면 "더 보기" 줄이 화면 가까이 오면 다음 쪽을 저절로 불러와요.With mode: 'infinite' the next page loads by itself when the "Load more" line comes near the viewport. #treeChildrenPaging#infinite#scroll#treeChildrenPaging#infinite#scroll 심화Advanced 자식 불러오기 실패와 다시 시도Paged lazy children: failure and retry 쪽을 받다 실패하면 "더 보기" 줄이 오류와 다시 시도 단추를 보여요. 같은 쪽을 다시 요청해요.When a page fails, the "Load more" line shows the error and a retry button, and retrying asks for the same page. #treeChildrenPaging#error#retry#treeChildrenPaging#error#retry

그룹과 소계Grouping and subtotals 24

그룹별 합계와 소계Per-group totals and subtotals

입문Beginner 줄을 묶고 합계 보기: 지역 → 채널Group rows and see totals: region, then channel 같은 값끼리 줄을 묶으면 묶음 줄에 합계가 나와요. 묶는 순서를 바꾸고, 몇 단계까지 열지 고르고, 그룹 체크박스로 한 번에 고를 수 있어요.Rows with the same value gather under a group row with totals. Change the grouping order, choose how many levels are open, and tick a group to select all its rows. #grouping#setGroupBy#aggregate#grouping#setGroupBy#aggregate 활용Intermediate 묶는 기준을 바꾸고 풀기Change or remove the grouping 묶는 컬럼을 고르고, 순서를 뒤집고, 풀어 봐요. 메모처럼 묶을 수 없게 정한 컬럼은 막혀요.Pick the grouping columns, reverse the order, or remove it. Columns marked as not groupable are refused. #grouping#setGroupBy#getGroupBy#grouping#setGroupBy#getGroupBy 활용Intermediate 열어 둔 그룹 기억하기: 새로고침·다시 묶기·저장Remember open groups: refresh, regroup, save 그룹을 열어 두고 데이터를 새로 불러오거나 다시 묶어 봐요. 열린 그룹을 저장해 두었다가 되살릴 수도 있어요.Open some groups, then refresh the data or regroup. You can also save the open groups and restore them. #grouping#expansionChanged#expandRow#grouping#expansionChanged#expandRow 활용Intermediate 그룹 줄의 이름·합계 모양과 펼침 아이콘 바꾸기Format group labels, totals and the toggle icon 묶음 줄에 "결제 완료"처럼 읽기 좋은 이름과 "1,200원" 같은 합계를 보여 주고, 펼침 아이콘을 화살표·폴더·더하기빼기로 바꿔요.Show readable group names and money totals on group rows and switch the toggle icon between arrow, folder and plus/minus. #grouping#formatValue#aggregateFormat#grouping#formatValue#aggregateFormat 활용Intermediate 그룹이 끝나는 곳에 소계 줄 붙이기Add a subtotal row where each group ends 지역 아래 담당자로 두 단계 묶은 발주 내역에서, 그룹이 끝나는 곳마다 수량과 금액의 소계 줄이 붙고 맨 아래에는 전체 합계가 나와요. 그룹을 접으면 소계 줄도 같이 접혀서 표가 깔끔해져요.In a two-level grouping of orders (region, then manager) each group ends with a subtotal row of quantity and amount, and a grand total sits at the bottom. Folding a group folds its subtotal. #grouping#subtotal#aggregate#grouping#subtotal#aggregate 심화Advanced 그룹을 합계 순으로 정렬하기Sort groups by their total 합계가 큰 팀을 위로 올리고, 이름순으로 바꾸고, 그룹 안의 순서만 바꿔 봐요.Move the team with the largest total to the top, sort by name, or reorder only inside the groups. #grouping#sort#setSortModel#grouping#sort#setSortModel 활용Intermediate 그룹 이름을 한 칸에 겹쳐 보여 주기Show nested group names in a single column 지역 → 담당자 그룹 이름을 '품목 / 그룹' 한 칸에 들여쓰기로 겹쳐 보여 줘서, 같은 값이 칸마다 반복되지 않아요. 지역·담당자 컬럼은 숨기고, 그룹이 끝나는 곳의 소계 줄과 전체 합계는 그대로 나와요.Region and manager group names nest by indentation in one Item / Group column, so values do not repeat in every cell. The region and manager columns are hidden while subtotal rows and the grand total stay. #grouping#subtotal#column#grouping#subtotal#column 활용Intermediate 소계를 그룹 이름 줄에 함께 보여 주기Show subtotals on the group name row itself 소계 줄을 따로 만들지 않고 그룹 이름 줄에 수량과 금액의 소계를 같이 적어요. 줄 수가 늘지 않고, 그룹을 접어 둔 채로도 지역별 합계를 한눈에 비교할 수 있어요.Instead of separate subtotal rows, the quantity and amount subtotals sit on the group name row. No extra rows, and folded groups still show their totals for easy comparison. #grouping#subtotal#aggregate#grouping#subtotal#aggregate 심화Advanced 10만 줄을 본부·팀으로 묶기Group 100,000 rows by division and team 직원 10만 명을 본부·팀으로 묶고 평균 월급을 보여 줘요. 묶는 기준을 바꾸거나 월급 필터를 걸어도 금방 다시 계산해요.Group 100,000 employees by division and team with average salary, then change the grouping or filter by salary. #grouping#big data#aggregate#grouping#big data#aggregate 입문Beginner 분류 아래 상품, 소계는 분류 줄에Products under categories, totals on the category row 분류를 숨기고 '상품 / 분류' 한 칸에 분류 이름과 상품을 들여쓰기로 이어 보여 줘요. 소계는 별도 줄 없이 분류 줄에 함께 나와서, 접으면 분류별 판매량과 매출만 깔끔하게 남아요.The category column is hidden and category names with their products indent inside one Product / Category column. Subtotals live on the category rows, so folding leaves a clean list of totals. #grouping#subtotal#single column#grouping#subtotal#single column 활용Intermediate 분기별 교차표: 지역·제품 합계Quarterly cross table: totals by region and product 분기마다 컬럼을 두고 지역(또는 제품)별로 묶어서, 묶음 줄과 맨 아래 전체 줄에 분기별 합계와 연 합계를 보여 줘요.One column per quarter grouped by region (or product), with quarterly and yearly totals on group and total rows. #grouping#aggregate#summary#grouping#aggregate#summary 심화Advanced 묶는 기준을 하나씩 바꾸고 헤더 그룹 읽기Change grouping one column at a time and read header groups addGroupBy, removeGroupBy, moveGroupBy로 묶는 기준을 하나씩 바꾸고, resetExpansion으로 펼침을 처음으로 되돌려요. 헤더 그룹은 getHeaderGroups와 상태 저장·복원으로 읽고 되살려요. 합계는 aggregates에 등록한 이름(range)으로 계산해요.addGroupBy, removeGroupBy and moveGroupBy change the grouping one column at a time, and resetExpansion returns the expansion to its start. Header groups are read with getHeaderGroups and saved or restored as a state. The total uses a name (range) registered in aggregates. #addGroupBy#removeGroupBy#moveGroupBy#addGroupBy#removeGroupBy#moveGroupBy 활용Intermediate 그룹을 합계 순으로 바로 정렬하기Sort groups by their total directly grouping.sortByTotal에 컬럼을 적으면 같은 부모 안의 그룹이 그 컬럼의 그룹 합계 순서로 놓여요. 도우미 컬럼이 필요 없어요.Set grouping.sortByTotal to a column and sibling groups are ordered by that column's group total. No helper column needed. #grouping#sortByTotal#aggregate#grouping#sortByTotal#aggregate 활용Intermediate 한 줄 전체로 그리는 행Rows drawn across the whole line fullWidthRow.when이 참인 행은 칸 없이 줄 전체를 덮는 한 칸으로 그려요. 앱 렌더러가 그 칸 안을 직접 그리고, 행은 데이터 행 그대로라 선택과 정렬이 일반 행과 같아요.Rows for which fullWidthRow.when is true are drawn as one cell across the whole line. Your renderer fills it, and the row stays a data row, so selection and sorting work as usual. #fullWidthRow#전체 폭 행#공지 행#fullWidthRow 심화Advanced 세부를 한 줄 전체 행으로Details as a full-width row rowHeight 함수와 fullWidthRow.height를 함께 쓰면 전체 폭 행이 더 높아져요. 행 안에 카드처럼 여러 줄 내용을 직접 그려요.With a rowHeight function, fullWidthRow.height makes the full-width row taller, so you can draw multi-line content such as a card inside it. #fullWidthRow#height#rowHeight#fullWidthRow#height#rowHeight 활용Intermediate 그룹 이름을 고쳐 한 번에 반영Rename a group in one step grouping.editable을 켜면 그룹 줄의 값을 더블클릭해서 고칠 수 있어요. 끝내면 그 그룹의 모든 행에 새 값이 한 번에 써지고(되돌리기 한 단계), 같은 이름이 있으면 그룹이 합쳐져요.With grouping.editable, double-click a group row's value to rename it. The new value is written to every row of the group at once (one undo step), and groups with the same name merge. #grouping.editable#그룹 값 고치기#updateCells#grouping.editable#updateCells 활용Intermediate 그룹 패널에 컬럼 끌어 놓기Drag columns into the group panel groupPanel을 켜면 머리글 위에 그룹 패널이 생겨요. 머리글을 끌어 놓으면 그 컬럼으로 묶고, 칩을 끌어 순서를 바꾸거나 밖으로 끌어내면 풀어요. 컬럼 메뉴와 키보드로도 같은 일을 해요.groupPanel adds a group panel above the header. Drop a header on it to group by that column, drag chips to reorder, or drag one out to ungroup. The column menu and keyboard do the same. #groupPanel#setGroupBy#addGroupBy#groupPanel#setGroupBy#addGroupBy 활용Intermediate 그룹 보기 방식: 컬럼 숨기기·줄 숨기기·병합Group display: hide columns, hide rows, merged grouping.hideColumns는 묶인 컬럼을 묶여 있는 동안 숨기고, hideRows는 그룹 줄 없이 행을 그룹 순서로 보이고, merged는 그룹 컬럼 칸을 값별로 세로 병합해요.grouping.hideColumns hides grouped columns while grouped, hideRows shows rows in group order without group lines, and merged merges the group column cells by value. #grouping#hideColumns#hideRows#grouping#hideColumns#hideRows 입문Beginner 스크롤해도 붙어 있는 그룹 머리글Group headers that stay pinned while scrolling groupRows.sticky: true면 지금 보는 그룹의 머리글 행이 컬럼 헤더 아래에 붙어 있어요. 그룹이 중첩되면 바깥 그룹부터 쌓이고(최대 3단계), 붙은 행을 누르면 그 그룹이 접혀요.With groupRows.sticky: true the header row of the group you are inside stays under the column header. Nested groups stack outermost first (up to 3 levels) and a click on a pinned row collapses that group. #groupRows#sticky#grouping#groupRows#sticky#grouping 입문Beginner 날짜를 연 > 월로 묶기Group dates by year > month 날짜 컬럼의 groupBy에 ['year', 'month']처럼 굵은 단위부터 배열을 주면, 그 컬럼으로 묶을 때 2026 > 11월 같은 중첩 그룹이 만들어져요. 그룹은 시간 순서로 놓이고 합계도 단계마다 나와요.Give a date column groupBy: ['year', 'month'] (coarse to fine) and grouping by it creates nested groups such as 2026 > November. Groups are in chronological order and show totals at every level. #groupBy#date hierarchy#year#groupBy#date hierarchy#year 입문Beginner 날짜를 분기·주·일 단위로 묶기Group dates by quarter, week or day groupBy에 'quarter'·'week'·'month'·'day' 한 단계만 주면 그 단위로 한 번에 묶어요. 그룹 값은 2026-Q4, 2026-W47처럼 안정적인 글자이고, 연도가 위에 없으면 라벨에 연도가 붙어요.A single groupBy value ('quarter', 'week', 'month' or 'day') groups by that unit at once. Group values are stable strings like 2026-Q4 and 2026-W47, and the label carries the year because no year level is above it. #groupBy#quarter#week#groupBy#quarter#week 입문Beginner 그룹 행에서 팀 전체 값 한 번에 바꾸기Change a whole group's value from its group row groupRows.editable에 컬럼을 적으면 그룹 행의 그 칸을 두 번 눌러 그 그룹 모든 행의 값을 한 번에 바꿔요. 되돌리기는 한 단계이고, 자식 행 하나라도 검증·훅에 걸리면 아무것도 바뀌지 않아요.List columns in groupRows.editable and a double-click on that cell of a group row sets the value on every row of the group at once. Undo is one step, and if any child fails validation or a hook nothing changes. #groupRows#editable#editGroupRow#groupRows#editable#editGroupRow 입문Beginner 그룹 안에서 비율·순위로 보기Show numbers as shares and ranks inside groups 컬럼 showAs로 숫자를 그룹 합계 대비 %, 전체 합계 대비 %, 그룹 안 순위로 보여 줘요. 표시만 바뀌고 값·정렬·편집은 그대로예요. 내보내기는 exportShowAs를 켜야 보이는 값을 써요.A column's showAs shows a number as a percentage of its group, a percentage of the grand total or a rank inside the group. Only the display changes; the value, sorting and editing stay. Exports use the displayed value only with exportShowAs. #showAs#percentOfGroup#rankInGroup#showAs#percentOfGroup#rankInGroup 입문Beginner 그룹을 트리 마디로 보기Show groups as tree nodes groupMode: 'tree'면 그룹이 첫 컬럼의 트리 마디로 보여요: 들여쓰기·펼침 단추·라벨과 행 수. ←→로 접고 펴요. 기본 'flat'과 바꿔 가며 비교해 보세요.With groupMode: 'tree' groups are tree nodes in the first column: indent, toggle, label and row count, and the arrow keys collapse and expand. Compare with the default 'flat'. #groupMode#tree#grouping#groupMode#tree#grouping

필터Filter 37

조건에 맞는 행만 보기Show only rows that match

입문Beginner 헤더 아래 칸에서 바로 걸러 보기Filter right under the header 컬럼마다 필터 칸이 있어서 값 목록에서 체크하거나, 숫자 식(>=50000)을 입력하면 바로 걸러져요. 여러 컬럼에 걸면 모두 만족하는 행만 남고, 비어 있는 값만 골라 볼 수도 있어요.Every column has a filter cell: tick values from a list or type a number expression such as >=50. Filters on several columns combine, and you can pick only empty values. #filter#filterRow#in#filter#filterRow#in 활용Intermediate 트리 표에서 걸러도 부모는 남아요Filtering a tree keeps the parents 프로젝트 단계와 작업처럼 부모·자식이 있는 표를 필터해도, 조건에 맞는 작업 위의 부모는 함께 남아서 어디에 속한 작업인지 알 수 있어요. 펼치고 접는 것도 필터와 따로 할 수 있어요.Filtering a parent-child table keeps the ancestors of every match, so you still see where a task belongs. Expanding and collapsing is independent of the filter. #filter#tree#필터#filter#tree 활용Intermediate 그룹으로 묶은 표도 걸러져요Filtering grouped rows 지역별로 묶은 표에 필터를 걸면 그룹 줄의 개수와 합계가 걸러진 행 기준으로 다시 계산돼요. 맞는 행이 없는 그룹은 사라지니, 어디에 해당 건이 몰려 있는지 한눈에 보여요.Filter a table grouped by region and the group counts and totals recompute from the matching rows only. Groups with no match disappear. #filter#grouping#aggregate#filter#grouping#aggregate 활용Intermediate 조건 두 개를 '그리고'·'또는'으로 묶기Combine two conditions with AND or OR 헤더의 깔때기 팝업에서 한 컬럼에 조건을 두 개까지 걸고 '그리고'(둘 다)나 '또는'(하나라도)으로 묶어요. 예를 들어 상품 이름에 '무선'이 있으면서 '이어폰'도 있는 것, 숫자는 '5만 원 이하 또는 20만 원 이상'처럼 양 끝도 고를 수 있어요.In the header funnel popup, put up to two conditions on a column and join them with AND or OR: product names with both words, or prices of $50 or less OR $200 or more. #filter#AND#OR#filter#AND#OR 활용Intermediate 나만의 조건으로 걸러 보기Filter by your own rule '이름이 연으로 끝나는 사람', '가격이 1로 시작', '2024년 9월 주문'처럼 기본 조건에 없는 규칙도 걸러낼 수 있어요. 값을 계산해서 만든 컬럼을 하나 두고 그 컬럼에 조건을 걸면 돼요.Rules that are not built in, such as names ending in a syllable, prices starting with 1 or orders from September 2024, are easy: add a computed column and filter on it. #filter#custom#getValue#filter#custom#getValue 활용Intermediate 코드 대신 보이는 이름으로 고르기Pick filter values by what the user sees 데이터에는 D01, 1 같은 코드가 들어 있어도 화면에는 영업팀, 재직처럼 읽기 좋은 이름이 보여요. 필터 값 목록도 보이는 이름으로 나오게 하면 사용자가 코드를 몰라도 고를 수 있어요.Data may hold codes such as D01 or 1 while the grid shows Sales or Active. Show the displayed names in the filter list so users never need to know the codes. #filter#formatValue#select#filter#formatValue#select 입문Beginner 헤더 아래 입력 칸에 치면 바로 걸러져요Type in the cells under the header to filter live 헤더 바로 아래에 컬럼마다 입력 칸이 생겨서, 글자를 치는 즉시 목록이 줄어들어요. 이름은 글자, 팀은 값 목록, 연봉은 범위(5000..6000), 입사일은 날짜 식, 재택은 예/아니오 선택이에요.A row of inputs under the header filters as you type: text for names, a value list for teams, ranges such as 50000..60000 for salary, date expressions for hire dates and yes/no for remote. #filter#filterRow#inline#filter#filterRow#inline 활용Intermediate 걸어 둔 필터를 저장했다가 다시 불러오기Save a filter and bring it back later 필터 칸에 입력해 둔 조건을 그대로 저장했다가, 나중에 한 번에 다시 채워 넣어요. 저장하는 값은 그냥 글자(JSON)라서 브라우저 저장소에 넣어도, 서버나 DB에 보관해도 돼요.Store the conditions typed into the filter cells and refill them later in one step. The saved value is plain JSON, so it fits browser storage, a server or a database. #filter#filterRow#save#filter#filterRow#save 입문Beginner 헤더의 깔때기로 Excel처럼 걸러 보기Filter from the header funnel, like Excel 헤더 오른쪽 깔때기를 누르면 정렬, 조건 두 개(그리고/또는), 값 목록 체크가 한 팝업에 나와요. 값 목록에는 검색과 (모두 선택), (비어 있음), 값마다 행 개수가 있고, 휴대폰에서는 아래에서 올라오는 시트로 바뀌어요.The funnel in each header opens one popup with sorting, two conditions joined by AND/OR, and a value checklist with search, select all, empty values and row counts. On phones it becomes a bottom sheet. #filter#filterMenu#funnel#filter#filterMenu#funnel 입문Beginner 이름 검색: 포함·시작·같음·끝Name search: contains, starts with, equals, ends with 글자 필터는 '포함', '시작 문자', '같음', '끝 문자', '포함하지 않음' 중에서 고를 수 있고 대소문자는 구분하지 않아요. 같은 입력도 방식에 따라 결과가 달라져요.A text filter can match contains, starts with, equals, ends with or does not contain, ignoring case. The same input gives different results per mode. #filter#text#contains#filter#text#contains 입문Beginner 금액 범위와 기간으로 거르기Filter by amount range and date period 금액은 최소·최대, 날짜는 시작일·종료일로 범위를 걸러요. 한쪽만 쓰면 '이상'이나 '이하', 둘 다 쓰면 '사이'(양 끝 포함)가 되고, 두 범위를 함께 걸면 둘 다 만족하는 행만 남아요.Filter amounts by min and max and dates by start and end. One side means at least or at most, both mean between (inclusive), and both ranges combine. #filter#number#date#filter#number#date 활용Intermediate 글자 하나로 여러 컬럼 찾기Find rows across columns with one text setQuickFilter는 공백으로 나눈 낱말이 모두(또는 하나라도) 어느 컬럼에든 들어 있는 행만 남겨요. 칸에 보이는 글자("1,200원")에서 찾고, 열 필터와 AND로 합쳐져요.setQuickFilter keeps the rows where every word (or any word) is found in some column. It searches the text the cell shows ("$1.20") and combines with column filters by AND. #quickFilter#setQuickFilter#search#quickFilter#setQuickFilter#search 활용Intermediate 앱이 정하는 바깥 필터An external filter decided by the app externalFilter(row, rowKey)가 true인 행만 남겨요. 앱 안의 값이 바뀌면 refreshFilter()로 다시 계산해요. 열 필터·빠른 필터와 AND로 합쳐져요.externalFilter(row, rowKey) keeps the rows for which it returns true. Call refreshFilter() after the app value changes. It combines with column and quick filters by AND. #externalFilter#refreshFilter#바깥 필터#externalFilter#refreshFilter 입문Beginner 상태 목록에서 고르고 빈 메모 찾기Pick a status and find empty notes 정해진 값 중에서 고르는 필터와 '비어 있음 / 값 있음' 필터를 함께 쓸 수 있어요. 두 조건은 둘 다 만족하는 행만 남겨요.Combine a pick-from-list filter with an empty or filled check. Both conditions must hold for a row to stay. #filter#in#isEmpty#filter#in#isEmpty 활용Intermediate 필터 입력을 직접 만들어 붙이기Attach your own filter input ColumnDef.filterAdapter로 가격 컬럼의 필터 칸과 필터 팝업을 슬라이더로 바꿔요. 슬라이더는 setModel로 같은 필터 모델에 조건을 써서 정렬·서버 모드·저장이 그대로 돼요.ColumnDef.filterAdapter replaces the price column's filter cell and popup with a slider. The slider writes into the same filter model through setModel, so sorting, server mode and saving keep working. #filterAdapter#custom filter#filterRow#filterAdapter#custom filter#filterRow 활용Intermediate 매출 상위 N명만 보기Show only the top N by sales '상위 N행' 전용 연산자는 없지만, N번째 값을 구해서 '그 값 이상'으로 걸면 같은 효과를 내요. 정렬을 함께 걸어 순위대로 보여 줘요.There is no top-N operator; find the Nth value and filter for at least that value. Sort alongside to show the ranking. #filter#top#gte#filter#top#gte 활용Intermediate 오늘·최근 7일·이번 달로 거르기Filter by today, last 7 days, this month '오늘', '최근 7일', '이번 달' 같은 기간은 열 때의 오늘 날짜로 시작일을 계산해서 날짜 범위 필터로 바꿔 걸어요. 접수일 데이터도 오늘 기준으로 만들어서 언제 열어도 결과가 나와요.Periods like today, last 7 days or this month are turned into a date range from today's date. The sample dates are generated from today, so every period has rows whenever you open it. #filter#date#relative#filter#date#relative 활용Intermediate 서버 페이징에서 빠른 필터 보내기Send the quick filter to the server 서버 페이징에서는 빠른 필터를 그리드가 걸러내지 않고 loadPage 요청의 quickFilter로 보내요. 글자가 바뀌면 다시 요청해요.With server paging the grid does not filter by itself; the quick filter goes in the loadPage request and a change requests again. #quickFilter#loadPage#server paging#quickFilter#loadPage#server paging 활용Intermediate 걸려 있는 조건 목록과 건수·합계List active filters with row count and total 필터 조건은 그냥 목록이라서, 걸린 조건을 '칩' 목록으로 보여 주거나 하나만 빼는 일은 그 목록을 다루면 돼요. 보이는 행 수와 합계는 지금 보이는 행만 더해서 필터를 따라가요.Filter conditions are a plain list, so showing the active ones as chips or removing just one is list work. The visible row count and total add only the rows now shown, so they follow the filter. #filter#chips#getFilterModel#filter#chips#getFilterModel 활용Intermediate 주문번호 여러 개 붙여넣어 한 번에 찾기Paste several order numbers to find them at once 엑셀이나 메신저에서 복사한 번호 여러 개를 쉼표·공백·줄바꿈 어느 것으로 구분했든 하나의 'in' 조건으로 바꿔 한 번에 찾아요. 정확히 같은 글자만 맞고, 없는 번호는 따로 알려 줘요.Paste a list of numbers separated by commas, spaces or new lines and it becomes one in condition. Only exact text matches, and numbers that do not exist are reported. #filter#in#paste#filter#in#paste 활용Intermediate 검색 상자 하나로 모든 컬럼 찾기One search box across all columns 그리드 위의 검색 상자에 입력하면 이름·이메일·근무지·부서를 한꺼번에 찾아요. 대소문자와 악센트(é, ö)를 무시하고, 헤더 아래 필터 행과 같이 써도 서로의 조건을 지우지 않아요.Type in a search box above the grid to search name, email, city and department at once. Case and accents are ignored, and the box works with the header filter row without erasing its conditions. #search#filter#contains#search#filter#contains 심화Advanced 찾은 글자를 노란색으로 표시하기Highlight the matched text 검색한 글자를 셀 안에서 형광펜처럼 칠해서 어디가 맞았는지 바로 보여 줘요. 값에 태그 같은 글자가 들어 있어도 글자 그대로 보여 줘서 안전해요.Highlight the matched text inside the cell like a marker so it is clear where the search hit. Values containing tag-like text are shown as plain text, so they stay safe. #search#highlight#cellRenderer#search#highlight#cellRenderer 활용Intermediate 달력·시계 단추로 날짜·시간 필터 고르기Pick a date or time filter with the picker 날짜+시간·시간 컬럼의 필터 행에 달력·시계 단추가 붙어요. 글자로 적어도 되고 선택기로 골라도 같은 필터가 걸려요.Datetime and time columns get a calendar or clock button in the filter row. Type a value or pick one; the same filter is applied. #filter#filterRow#datetime#filter#filterRow#datetime 활용Intermediate 날짜·시간 범위로 거르기Filter by a date or time range 날짜, 시간, 날짜+시간 컬럼의 필터 행에 하루, 이상·이하, 범위(..)를 글자로 쓰거나 버튼으로 걸어요. 어떤 방식이든 같은 필터 모델이 만들어져요.In the filter row of date, time and datetime columns, write a whole day, at-least or at-most, or a range (..) as text, or apply one with a button. Every way builds the same filter model. #filter#filterRow#datetime#filter#filterRow#datetime 활용Intermediate 필터가 보는 값 바꾸기Change the value the filter sees filterValue로 필터와 값 목록이 월 같은 다른 값을 보게 하고, valueKey로 객체 값을 id로 묶어요. 표시와 정렬은 그대로 getValue예요.filterValue makes the filter and the value list see another value, such as the month, and valueKey groups object values by id. Display and sort keep using getValue. #filterValue#valueKey#valueEquals#filterValue#valueKey#valueEquals 활용Intermediate 날짜 필터 입력 방식 고르기Choose how date filters are typed 날짜 컬럼의 filter.dateInput이 'text'면 필터 칸에 선택기 단추가 없고 직접 입력만 해요. 생략하거나 'picker'면 입력과 선택기를 함께 써요.With filter.dateInput 'text' on a date column the filter input has no picker button and takes typing only. Omitted or 'picker' keeps typing together with the picker. #dateInput#filter#date#dateInput#filter#date 활용Intermediate 필터 팝업 크기와 값 목록 꾸미기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. #filter#filterMenu#width#filter#filterMenu#width 활용Intermediate 필터 팝업을 코드로 열고 컬럼 필터 다루기Open the filter popup and edit one column's filter from code openFilterMenu, closeFilterMenu로 팝업을 열고 닫고, getColumnFilter, setColumnFilter, clearColumnFilter로 컬럼 하나의 조건만 읽고 바꾸고 지워요. 열림, 닫힘은 filterMenuOpened, filterMenuClosed 이벤트로 알려요.Open and close the popup with openFilterMenu and closeFilterMenu, and read, set or clear the conditions of a single column with getColumnFilter, setColumnFilter and clearColumnFilter. filterMenuOpened and filterMenuClosed report it. #filter#filterMenu#openFilterMenu#filter#filterMenu#openFilterMenu 입문Beginner 필터 없이 행 숨기기Hide rows without a filter hideRows(keys)는 고른 행을 보기에서 빼고 showRows()로 되돌려요. 필터와 따로 움직여서 필터를 걸고 풀어도 숨김은 그대로예요. 숨긴 행은 getRows()에 남고 변경으로 세지 않아요.hideRows(keys) takes chosen rows out of the view and showRows() brings them back. It moves independently of the filter, so setting or clearing a filter does not change what is hidden. Hidden rows stay in getRows() and are not counted as changes. #hideRows#showRows#getHiddenRows#hideRows#showRows#getHiddenRows 입문Beginner 필터를 이름 붙여 저장하고 다시 쓰기Save a filter under a name and reuse it 필터 팝업 아래쪽 '프리셋' 영역에서 지금 필터를 이름 붙여 저장하고, 목록에서 골라 다시 적용하거나 이름을 바꾸고 지울 수 있어요. 처음 목록은 '개발팀만'과 '연봉 6,000 이상' 두 개예요.The Presets area at the bottom of the filter popup saves the current filter under a name, then applies, renames or deletes it from a list. It starts with two presets: 'Dev only' and 'Salary $60,000+'. #filterPresets#saveFilterPreset#applyFilterPreset#filterPresets#saveFilterPreset#applyFilterPreset 입문Beginner 프리셋을 새로고침해도 남기기Keep presets after a reload filterPresets에 storageKey를 주면 프리셋 목록이 브라우저(localStorage)에 저장돼요. 페이지를 다시 열어도 저장한 프리셋이 그대로 남아 있어요.With a storageKey in filterPresets the preset list is stored in the browser (localStorage), so saved presets are still there after the page is opened again. #filterPresets#storageKey#localStorage#filterPresets#storageKey#localStorage 활용Intermediate 프리셋에 정렬도 함께 저장하기Save the sort together with the preset filterPresets에 includeSort: true를 주면 프리셋에 필터와 함께 정렬도 저장돼요. 프리셋을 적용하면 필터와 정렬이 같이 돌아와요.With includeSort: true in filterPresets a preset stores the sort along with the filter, so applying it restores both. #filterPresets#includeSort#setSortModel#filterPresets#includeSort#setSortModel 활용Intermediate 필터 팝업에 내 단추 더하기Add your own buttons to the filter popup filterPopupActions에 { id, label, run(api) }를 넣으면 필터 팝업 아래쪽에 내 단추가 생겨요. 이 예제는 '개발팀만'과 '연봉 6,000 이상' 단추를 달았어요.filterPopupActions with { id, label, run(api) } adds your own buttons at the bottom of the filter popup. This example adds 'Dev only' and 'Salary $60,000+' buttons. #filterPopupActions#filterMenu#popup#filterPopupActions#filterMenu#popup 심화Advanced 필터 빌더로 조건을 그리고/또는/아님으로 쌓기Stack conditions with AND, OR and NOT in the filter builder filterBuilder 옵션을 켜면 필터 팝업 아래에 "고급…" 버튼이 생겨요. 열리는 빌더에서 컬럼·연산자·값 조건을 더하고, 묶음(그룹)을 겹쳐서 "모두" 또는 "하나라도" 만족하게, 묶음 전체를 "아님(NOT)"으로 뒤집을 수 있어요.With the filterBuilder option on, the filter popup gets an "Advanced…" button. In the builder you add column, operator and value conditions, nest groups that must match "all" or "any", and flip a whole group with NOT. #filter#filterBuilder#openFilterBuilder#filter#filterBuilder#openFilterBuilder 심화Advanced 겹친 조건(묶음 안의 묶음)과 깊이 한도Nested conditions (groups inside groups) and the depth limit 묶음 안에 묶음을 겹쳐 "A 그리고 (B 또는 C)" 같은 조건을 만들어요. filterBuilder.maxDepth로 겹칠 수 있는 단계(기본 4, 최대 6)를 줄일 수 있고, 한도에 닿으면 "+ 묶음" 버튼이 꺼져요.Nest groups inside groups to build conditions like "A and (B or C)". filterBuilder.maxDepth lowers the number of levels (default 4, maximum 6); at the limit the "+ Group" button is disabled. #filter#filterBuilder#maxDepth#filter#filterBuilder#maxDepth 심화Advanced 코드로 필터 트리 걸고 읽고 지우기Set, read and clear a filter tree from code setFilterTree로 겹친 조건을 코드로 걸고, getFilterTree로 읽고, null을 주면 지워요. 컬럼·연산자·값이 틀린 트리는 상태를 바꾸기 전에 invalid-option 오류로 거절돼요. 빌더 화면 없이도 쓸 수 있어서 filterBuilder 옵션은 필요 없어요.setFilterTree sets a nested condition from code, getFilterTree reads it and null clears it. A tree with a wrong column, operator or value is rejected with an invalid-option error before any state changes. It works without the builder dialog, so the filterBuilder option is not needed. #filter#setFilterTree#getFilterTree#filter#setFilterTree#getFilterTree 심화Advanced 서버 페이징에서 필터 트리를 서버로 보내기Send the filter tree to the server with server paging 서버 페이징에서는 그리드가 행을 거르지 않고, 필터 빌더가 만든 트리를 loadPage 요청의 filter.tree로 그대로 보내요. 여기서는 모의 서버가 그 트리를 따라 내려가며 판정해요(실제 서버는 WHERE 조건으로 바꿔요).With server paging the grid does not filter rows; the tree the filter builder makes goes to the server as filter.tree in the loadPage request. Here a mock server walks that tree to decide (a real server would turn it into WHERE conditions). #filter#filterBuilder#server#filter#filterBuilder#server

페이지 나누기Paging 18

페이지 단위로 나눠 보기Split data into pages

입문Beginner 500건을 20건씩 나눠 보기Split 500 rows into pages of 20 주문 500건을 한 번에 넣고 페이지 나누기만 켜면 20건씩 나눠 보여요. 아래 페이지 막대에서 이동하거나 페이지 번호를 직접 입력할 수 있고, 행 번호는 페이지를 넘어서도 이어져요.Load 500 orders at once, switch paging on and they show 20 at a time. Move with the pager or type a page number; row numbers continue across pages. #paging#pagination#pageSize#paging#pagination#pageSize 입문Beginner 한 페이지 개수와 안내 문구 바꾸기Change rows per page and the pager text 한 페이지에 15건씩 보이게 하고, 페이지 막대의 위치(위·아래)와 "총 300건 중 1–15" 같은 안내 문구를 내 말투로 바꿔요. 설정 몇 줄이면 돼요.Show 15 rows per page, move the pager to the top or bottom, and replace the "1–15 of 300" text with your own wording. A few settings are enough. #paging#pagination#messages#paging#pagination#messages 활용Intermediate 페이지를 나눠도 같은 값은 칸이 합쳐져요Merged cells work inside pages too 대분류, 구분처럼 같은 값이 이어지면 칸을 합쳐 보여요. 페이지를 나눠도 그 페이지에 보이는 줄 안에서 합쳐지고, '구분'은 같은 대분류 안에서만 합치도록 기준을 정할 수 있어요.Equal neighbouring values merge into one cell, and merging works within each page. The Group column can be told to merge only inside the same major category. #paging#merge#mergeWithin#paging#merge#mergeWithin 입문Beginner 페이지당 행 수를 사용자가 고르게 하기Let users pick how many rows per page 5, 10, 15건 중에서 한 페이지에 몇 건을 볼지 고를 수 있는 칸을 페이지 막대에 달아요. 개수를 바꾸면 전체 페이지 수가 바로 다시 계산돼요.Add a rows-per-page chooser (5, 10, 15) to the pager. Changing it recalculates the page count immediately. #paging#pageSize#pageSizes#paging#pageSize#pageSizes 활용Intermediate 페이지를 넘겨도 선택 유지Keep the selection across pages 선택은 행마다 붙은 고유 번호로 기억해서 다른 페이지로 넘어가도 고른 행이 그대로 남아요. 머리글 체크박스는 지금 보이는 페이지의 행만 다루고, 전체 개수는 기록 창에 알려 줘요.Selection is remembered by each row's unique number, so chosen rows stay chosen when you change page. The header checkbox only covers the visible page, and the log reports the running total. #paging#selection#setPage#paging#selection#setPage 심화Advanced 여러 페이지에서 고친 것을 한 번에 저장Save edits from several pages at once 일괄 저장 모드에서는 고친 값이 모아 두어서, 페이지를 넘겨도 사라지지 않아요. 저장 버튼을 한 번 누르면 모든 페이지에서 고친 행이 함께 서버로 가요.In batch save mode edits are collected, so changing page does not lose them. One save sends the rows edited on every page together. #paging#batch save#save#paging#batch save#save 활용Intermediate 페이지마다 합계 줄과 강조 색이 따라와요Totals and highlights follow you across pages 페이지를 넘겨도 맨 아래 합계 줄은 전체 합계로 늘 붙어 있고, 서울 행이나 노트북 칸 같은 강조도 페이지마다 그대로 적용돼요. 이 페이지만의 합계는 기록 창에 따로 보여 줘요.A total row stays at the bottom of every page and shows the grand total, and row and cell highlights apply on each page. The current page's own sum appears in the log. #paging#summary#total row#paging#summary#total row 활용Intermediate 검색하고 걸러도 페이지가 알아서 맞춰져요Search and filter, and the pages adjust themselves 상품 이름을 검색하거나 지역으로 걸러 보세요. 조건에 맞는 행만으로 페이지가 다시 나뉘고, 조건을 바꾸면 늘 1페이지로 돌아가요. 정렬도 걸러진 결과 전체를 기준으로 해요.Search product names or filter by region. Pages are rebuilt from the matching rows only, and any change sends you back to page 1. Sorting covers the whole filtered result. #paging#filter#search#paging#filter#search 심화Advanced 페이지 번호를 주소창과 맞추기Keep the page in sync with the address 페이지를 넘길 때마다 주소 글자(?page=3&size=10)를 새로 적고, 주소가 바뀌면(뒤로 가기, 링크 열기) 그 값을 읽어 그 페이지로 돌려놓아요. 이 미리보기에서는 실제 주소창을 바꿀 수 없어서 '주소창' 줄이 대신 보여 줘요.On every page change the address text (?page=3&size=10) is rewritten, and when the address changes (back button, opened link) it is read back to restore the page. The preview cannot change the real address bar, so the address line stands in for it. #paging#url#query#paging#url#query 심화Advanced 100만 건도 서버 페이징으로 가볍게One million rows with server paging 서버 페이징에서는 그리드가 전체 건수만 알고, 요청한 페이지의 행만 받아요. 100만 건이어도 브라우저에는 한 번에 한 페이지만 있어서 빠르고, 새 요청이 오면 이전 요청은 중단돼요.With server paging the grid only knows the total count and receives just the requested page. A million rows stay light because the browser holds one page at a time, and a new request aborts the previous one. #paging#server#loadPage#paging#server#loadPage 심화Advanced 서버에서 한 페이지씩만 받아 오기Fetch one page at a time from a server 주문 2,000건이 서버에 있어도 화면에는 필요한 10건만 받아 와요. 페이지를 넘기거나 헤더로 정렬하거나 검색·국가를 바꿀 때마다 그리드가 서버에 새 요청을 보내고, 늦게 온 옛 응답은 알아서 버려요.Even with 2,000 orders on a server, the grid fetches only the 10 it shows. Paging, sorting or changing the search triggers a new request, and stale responses are dropped automatically. #paging#server#loadPage#paging#server#loadPage 입문Beginner 페이지 막대 모양 고르기Choose the pager style pager 옵션으로 페이지 막대를 기본(처음·번호·끝), 간단(이전·다음과 n / m), 버튼(번호 버튼만) 중에서 골라요.The pager option switches the page bar between full (first, numbers, last), simple (previous, next and "n of m") and button (numbered buttons only). #paging#pager#페이징#paging#pager#pagination 입문Beginner 페이지를 나눠도 합계·평균 두 줄은 그대로Two summary rows that stay put across pages 45건을 10건씩 나눠 보여 주면서 맨 아래에 합계와 평균 두 줄을 붙였어요. 두 줄은 이 페이지가 아니라 전체 행으로 계산하고, 페이지를 넘겨도 그 자리에 있어요.45 rows are shown 10 at a time with two summary rows at the bottom: total and average. Both are calculated over all rows, not just this page, and stay in place as you change pages. #paging#pagination#summary#paging#pagination#summary 활용Intermediate 페이저의 문구와 구성을 내 방식으로Shape the pager text and layout summary로 요약 문구를, pageButtons로 번호 칸 수를, parts로 보일 부분과 순서를 정해요. autoPageSize는 그리드 높이에 맞춰 한 쪽의 행 수를 정하고, nextPage·lastPage 같은 메서드로 코드에서 쪽을 옮겨요.summary writes the summary text, pageButtons sets the number slots and parts chooses which parts show and in what order. autoPageSize fits the rows per page to the grid height, and nextPage, lastPage and friends move pages from code. #pagination#summary#pageButtons#pagination#summary#pageButtons 활용Intermediate 스크롤하며 서버에서 받기Fetch rows from the server while scrolling rowModel: 'infinite'와 serverRows.load로 행을 블록 단위로 받아요. 스크롤해서 화면에 들어오는 블록만 요청하고, 오기 전의 줄은 스켈레톤으로 보여요. 가짜 서버가 0.4초 뒤에 답해요.rowModel: 'infinite' with serverRows.load fetches rows in blocks. Only blocks entering the viewport are requested, and lines not yet received show as a skeleton. A fake server answers after 0.4 s. #rowModel#infinite#serverRows#rowModel#infinite#serverRows 활용Intermediate 정렬·필터는 서버가Sort and filter on the server 정렬이나 빠른 필터를 바꾸면 요청이 취소되고 캐시가 비워진 뒤 처음 블록부터 다시 받아요. 요청의 sort와 quickFilter를 서버가 적용해요. 여기서는 가짜 서버가 1,000행을 정렬·검색해 답해요.Changing the sort or the quick filter cancels requests, clears the cache and reloads from the first block. The server applies the sort and quickFilter of the request; here a fake server sorts and searches 1,000 rows. #sort#quickFilter#serverRows#sort#quickFilter#serverRows 심화Advanced 백만 행도 가볍게A million rows stay light 전체 줄 수 1,000,000인데 메모리에는 보관 중인 몇 블록의 행만 있어요. 멀리 스크롤하면 오래된 블록은 버려지고(keepBlocks), 맨 끝으로 점프해도 그 근처 블록만 받아요.With 1,000,000 lines, memory holds only the few blocks kept (keepBlocks). Scrolling far drops old blocks, and jumping to the end fetches just the blocks around it. #serverRows#keepBlocks#scrollToIndex#serverRows#keepBlocks#scrollToIndex 활용Intermediate 새로 고침·비우기·오류 재시도Refresh, purge and retry refreshServerRows는 보이는 블록을 다시 받아 바꾸고, purgeServerRows는 캐시를 비우고 다시 받아요. 블록 요청이 실패하면 그 줄이 오류 줄이 되고 눌러서 다시 시도해요.refreshServerRows reloads the visible blocks in place, and purgeServerRows drops the cache and reloads. A failed block becomes an error line you click to retry. #refreshServerRows#purgeServerRows#getServerBlockState#refreshServerRows#purgeServerRows#getServerBlockState

셀 표현Cell renderers 17

값을 배지·진행 막대 등으로 보여 주기Show values as badges, bars and more

입문Beginner 링크 칸: 홈페이지·이메일·전화·티켓Link cells: website, e-mail, phone, ticket 주소 값을 누를 수 있는 링크로 그려요. 이메일은 메일 쓰기로, 전화는 전화 걸기로, 티켓 번호는 baseUrl로 추적 사이트 주소를 만들고 onClick으로 클릭을 먼저 받아요. 안전하지 않은 주소는 링크가 되지 않아요.Draw address values as clickable links: e-mail opens a new message, phone dials, ticket numbers build a tracker address from baseUrl and onClick sees the click first. Unsafe addresses are not turned into links. #link#cellRenderer#링크#link#cellRenderer 입문Beginner 상태 배지: 값에 따라 이름과 색 정하기Status badges: names and colors by value 주문 상태나 재고 같은 값을 색 배지로 보여 줘요. 값마다 이름과 색을 정하거나, 숫자에 따라 색을 고를 수 있어요.Show values such as order status or stock as colored badges. Name and color can be set per value, or chosen by the number. #badge#cellRenderer#tone#badge#cellRenderer#tone 입문Beginner 진행 막대: 범위와 구간별 색Progress bars: range and colors by band 숫자를 막대로 보여 줘요. 범위를 정하고, 값 구간에 따라 초록·노랑·빨강으로 바뀌게 하고, 막대만 보일지 숫자도 함께 보일지 고를 수 있어요.Show numbers as bars. Set the range, change green/yellow/red by band, and choose bar only or bar with number. #progress#cellRenderer#ranges#progress#cellRenderer#ranges 활용Intermediate 별점: 보기만 하는 별과 눌러서 바꾸는 별Ratings: read-only stars and clickable stars 내장 별점으로 평점을 보여 주고, 직접 만든 칸으로 별을 눌러 내 평점을 바꿔요. 같은 별을 다시 누르면 지워져요.Show ratings with the built-in stars and let people change their own rating by clicking stars in a custom cell. Clicking the same star again clears it. #rating#cellRenderer#cellClicked#rating#cellRenderer#cellClicked 입문Beginner 아바타: 사진이나 이니셜Avatars: photo or initials 이름 옆에 동그란 사진을 보여 줘요. 사진이 없거나 안전하지 않은 주소면 이름의 앞 글자(이니셜)로 대신해요.Show a round photo next to the name. Without a photo, or with an unsafe address, the initials are shown instead. #avatar#cellRenderer#image#avatar#cellRenderer#image 입문Beginner 태그 칸: 여러 값을 꼬리표로Tag cells: several values as chips 라벨이나 기술처럼 여러 값을 작은 꼬리표들로 보여 줘요. 많으면 "+2"처럼 접고, 구분 글자로 나눈 글자도 태그가 돼요.Show several values such as labels or skills as small chips. Extra ones fold into "+2", and text split by a separator also becomes tags. #tags#cellRenderer#separator#tags#cellRenderer#separator 활용Intermediate 칸 모양이 달라도 정렬·검색은 원래 값으로Different cell looks, but sort and filter use the real value 아바타, 배지, 진행 막대, 별점, 태그를 한 표에 모두 쓰고, 그래도 정렬과 검색이 그려진 모양이 아니라 원래 값으로 되는 것을 확인해요.Use avatar, badge, progress, rating and tags in one grid and see that sort and filter still work on the real values, not the drawn look. #renderer#sort#filter#renderer#sort#filter 입문Beginner 진행 막대: 두께·글자 위치·퍼센트Progress bars: thickness, label position, percent 막대 두께와 간격, 글자를 앞·뒤·막대 안에 놓기, 0~1 비율 값, 퍼센트 글자, 구간별 클래스를 옵션만으로 바꿔요.Change bar thickness and gap, put the label before, after or inside the bar, use 0–1 ratios, percent text and per-band classes with options only. #progress#cellRenderer#height#progress#cellRenderer#height 입문Beginner 셀 안의 버튼Buttons inside cells cellRenderer 'button'으로 행마다 버튼을 그려요. 라벨은 행에 따라 바뀌고, 조건에 따라 비활성이 되거나 숨고, 누르면 onClick이 불려요. 셀 편집이나 선택은 건드리지 않아요.cellRenderer 'button' draws a button per row. The label follows the row, the button can be disabled or hidden by a condition, and a click calls onClick. It does not touch cell editing or selection. #button#cellRenderer#onClick#button#cellRenderer#onClick 입문Beginner 불릿: 실제 값과 목표 눈금Bullet: actual value and target tick 셀 값을 막대로, 같은 행의 다른 필드를 세로 눈금(목표)으로 그려요. 어댑터를 만들 필요가 없어요.Draw the cell value as a bar and another field of the same row as a vertical target tick, without writing an adapter. #bullet#cellRenderer#target#bullet#cellRenderer#target 활용Intermediate 불릿: 구간 색과 글자Bullet: band colors and label 낮음·보통·높음 구간을 옅은 톤으로 깔고, 목표를 함수로 정하고, 글자를 막대 오른쪽에 직접 만든 형식으로 보여요.Lay low, medium and high bands in light tones, set the target with a function and show a custom label beside the bar. #bullet#ranges#format#bullet#ranges#format 활용Intermediate HTML 렌더러: 서식은 살리고 위험은 지우기HTML renderer: keep the markup, drop the danger 값에 든 굵게·목록 같은 서식은 그리고, 스크립트와 이벤트 속성은 지워서 글자로 안전하게 보여요.Draw markup such as bold text and lists in the value, and remove scripts and event attributes so the text is safe. #html#cellRenderer#sanitize#html#cellRenderer#sanitize 입문Beginner 이미지: 크기·모양·불러오지 못했을 때Images: size, shape and load failures cellRenderer 'image'는 셀 값(또는 map·src)을 주소로 이미지를 그려요. height로 크기를, shape로 모양을 정하고, 주소가 위험하거나 불러오지 못하면 fallback대로 비우거나 셀 글자를 보여요. onClick을 주면 이미지가 버튼이 돼요.cellRenderer 'image' draws an image from the cell value (or map and src). height sets the size and shape the outline; if the URL is unsafe or fails to load, fallback either leaves it empty or shows the cell text. With onClick the image becomes a button. #image#cellRenderer#이미지#image#cellRenderer#fallback 활용Intermediate HTML 렌더러: 허용되는 링크 주소HTML renderer: allowed link addresses https·mailto·상대 주소만 링크로 남기고 javascript:·data: 주소는 글자만 남기는 규칙을 보여요. allowTags로 허용 태그를 좁혀요.See how only https, mailto and relative addresses stay links while javascript: and data: addresses keep only their text. allowTags narrows the allowed tags. #html#allowTags#href#html#allowTags#href 입문Beginner 아이콘: 값에 따라 바꾸기Icons: switch by value cellRenderer 'icon'은 값에 맞는 글자·이모지·SVG 아이콘을 그려요. map으로 값과 아이콘을 짝지우고, position으로 셀 글자 앞·뒤에 놓고, tone으로 색을 정해요. 허용되지 않는 SVG는 그리지 않아요.cellRenderer 'icon' draws a text, emoji or SVG icon that fits the value. map pairs values with icons, position puts it before or after the cell text, and tone sets the color. SVG that is not allowed is not drawn. #icon#cellRenderer#아이콘#icon#cellRenderer#svg 입문Beginner 둥근 별점과 반쪽 별Round stars and half stars rating 렌더러에 shape: 'soft'를 주면 글자 별(★☆) 대신 모서리가 둥근 SVG 별을 그려요. half: true면 0.5 단위로 반올림해 반쪽 별도 보여요. 접근성 이름은 같고 소수로 읽혀요.Give the rating renderer shape: 'soft' to draw rounded SVG stars instead of the ★☆ glyphs. With half: true values round to 0.5 and half stars are drawn. The accessible name stays the same and reads the decimal. #rating#shape#half#rating#shape#half 입문Beginner 진행 링: 동그란 % 완료 표시Progress rings: round percent-complete display cellRenderer: 'progressRing'은 숫자를 작은 동그란 링과 가운데 숫자로 보여 줘요. 100%면 초록, 0%면 흐리게, 값이 비어 있으면 빈 링이에요.cellRenderer: 'progressRing' shows a number as a small round ring with the number inside. It turns green at 100%, dims at 0%, and stays an empty ring when the value is empty. #progressRing#cellRenderer#progress#progressRing#cellRenderer#progress

편집 입력 방식Edit inputs 21

드롭다운·날짜 같은 입력 도구Dropdowns, date pickers and other inputs

입문Beginner 목록에서 고르고 체크박스로 켜고 끄기Pick from a list, toggle with a checkbox 값을 목록에서 고르게 하거나 체크박스로 켜고 끌 수 있어요. 목록 칸은 한 번 누르면 목록이 열리고 체크박스 칸은 한 번 누르면 바로 바뀌어요. 보이는 모양(배지)과 고칠 때 모양(목록)도 따로 정할 수 있어요.Let people pick a value from a list or toggle a checkbox. One click opens the list or toggles the checkbox, and what you see (a badge) and what you edit with (a list) are set separately. #edit#select#checkbox#edit#select#checkbox 입문Beginner 날짜 칸 편집: 직접 쓰거나 달력에서 고르기Edit dates by typing or from a calendar 날짜 컬럼은 날짜 편집기가 열려요. 2026-03-05나 2026.3.5처럼 직접 쓰거나 달력에서 고를 수 있고, 값은 데이터에 들어 있던 모양(Date·글자·밀리초) 그대로 돌아와요.Date columns open a date editor: type 2026-03-05 or 2026.3.5, or pick from the calendar. The value comes back in the shape it had (Date, text or milliseconds). #edit#date#calendar#edit#date#calendar 활용Intermediate 목록에서 고르거나 직접 쓰는 콤보박스A combo box: pick from a list or type your own 제안 목록에서 고를 수도 있고, 목록에 없는 값을 직접 쓸 수도 있는 편집기예요. 입력한 값을 기억해 두었다가 다음 제안에 넣는 방식도 고를 수 있어요.An editor that offers suggestions but also accepts values that are not in the list. You can also make it remember what people typed and offer it next time. #edit#combobox#autocomplete#edit#combobox#autocomplete 입문Beginner 스위치로 켜고 끄기Turn things on and off with a switch cellRenderer 'switch'는 셀 안에 누르는 스위치를 그려요. 눌러서 바꾼 값은 일반 편집처럼 검증, 되돌리기, 변경 추적을 거쳐요. 편집할 수 없는 행은 비활성이고, canToggle로 바꾸지 못하게 막을 수도 있어요.cellRenderer 'switch' draws a switch you can press in the cell. The value you change goes through validation, undo and change tracking like any edit. Rows that are not editable are disabled, and canToggle can refuse a change. #switch#cellRenderer#canToggle#switch#cellRenderer#canToggle 활용Intermediate 체크박스에 다른 저장 값 쓰기Store other values with a checkbox checkedValue와 uncheckedValue로 'Y'/'N' 같은 값을 체크 상태에 짝지어요. 크기와 모양, 라벨도 정해요. 필터와 내보내기는 저장된 값('Y'/'N')을 그대로 봐요.checkedValue and uncheckedValue map values such as 'Y'/'N' to the checked state. Size, shape and label are options too. Filter and export see the stored value ('Y'/'N'). #checkbox#checkedValue#uncheckedValue#checkbox#checkedValue#uncheckedValue 입문Beginner 버튼으로 숫자 올리고 내리기Raise and lower numbers with buttons cellEditor 'stepper'는 숫자 칸에 올리기·내리기 버튼을 붙여요. step, min, max, repeat, layout, typing 옵션으로 걸음 크기, 범위, 누르고 있을 때의 반복, 버튼 모양, 직접 입력 여부를 정해요. 범위 밖 숫자를 직접 치면 고치지 않고 확정할 때 이유를 알려 줘요.cellEditor 'stepper' adds increase and decrease buttons to a number cell. The step, min, max, repeat, layout and typing options set the step size, the range, the repeat while held, the button layout and whether typing is allowed. A typed number outside the range is not corrected; the commit explains why it is refused. #stepper#cellEditor#editorParams#stepper#cellEditor#editorParams 입문Beginner 글자를 치면 걸러지는 콤보박스A combobox that filters as you type cellEditor 'combobox'는 입력칸에 글자를 치면 목록이 걸러지고 항목을 골라 값으로 정해요. 선택지는 select와 같은 방법으로 주고, 목록에 없는 글자는 확정되지 않아요. allowCustom을 켜면 직접 친 글자도 값이 돼요.cellEditor 'combobox' filters a list as you type and you pick an item as the value. The list comes from the same sources as select, and text that is not in the list is not committed. With allowCustom the typed text becomes the value. #combobox#cellEditor#editorParams#combobox#cellEditor#editorParams 입문Beginner 전화번호·사업자 번호 마스크 입력Mask input for phone and business numbers cellEditor 'mask'는 정해진 모양(pattern)에 맞춰 입력하게 해요. 숫자만 받고 -는 저절로 들어가요. keepMask로 저장 값을 '010-1234-5678' 또는 '01012345678'로 고르고, 끝까지 채우지 않으면 확정이 막혀요.cellEditor 'mask' fits typing into a fixed pattern. Only digits are accepted and the dashes appear by themselves. keepMask chooses whether the stored value is '010-1234-5678' or '01012345678', and committing before every position is filled is refused. #mask#cellEditor#editorParams#mask#cellEditor#editorParams 활용Intermediate 찾는 방식과 자동 선택Match modes and auto-pick combobox의 match는 항목 글자의 앞부분(startsWith)이나 어디든(contains)에서 찾고, pickSingleMatch는 맞는 항목이 하나일 때 Enter로 자동 선택해요. renderItem은 항목 글자를 바꾸고, maxHeight·itemAlign은 목록 모양을, commitOnPick은 고르자마자 확정할지를 정해요.The combobox match option searches the start of the item text (startsWith) or anywhere (contains), and pickSingleMatch auto-picks on Enter when exactly one item matches. renderItem changes the item text, maxHeight and itemAlign shape the list, and commitOnPick decides whether picking commits at once. #combobox#match#startsWith#combobox#match#startsWith 활용Intermediate 슬롯을 직접 정하는 마스크와 applyMaskCustom slots and applyMask slot으로 슬롯 코드를 더하면 16진수 색 코드 같은 모양도 만들 수 있어요. overwrite는 글자를 끼워 넣지 않고 덮어쓰고, placeholderChar로 빈 칸 글자를 바꿔요. applyMask와 stripMask는 편집기 밖에서도 같은 규칙으로 쓸 수 있어요.A slot code added with slot makes shapes such as a hex color code possible. overwrite replaces characters instead of inserting, and placeholderChar changes the blank mark. applyMask and stripMask apply the same rules outside the editor. #mask#slot#overwrite#mask#slot#overwrite 활용Intermediate 좁은 화면에서는 아래 시트로A bottom sheet on narrow screens combobox 목록은 좁은 화면이나 낮은 터치 화면에서 날짜 선택기처럼 아래에서 올라오는 시트로 열려요. 항목은 44px 이상이고 어두운 막을 누르면 목록만 닫혀요. 넓은 화면에서는 셀 아래 팝업이고 자리가 모자라면 위로 뒤집혀요.On a narrow or low touch screen the combobox list opens as a bottom sheet like the date picker. Items are at least 44px and pressing the dark backdrop closes only the list. On a wide screen it is a popup below the cell that flips above when there is no room. #combobox#mobile#sheet#combobox#mobile#sheet 입문Beginner 한 칸에서 여러 개 고르기Pick several items in one cell cellEditor 'multiselect'는 한 칸에서 항목을 여러 개 고르는 편집기예요. 입력칸에 고른 글자가 이어져 보이고, 목록에서 Space나 누르기로 켜고 꺼요. 값은 선택지 순서의 배열이고, selectAll로 전체 선택 줄을 둘 수 있어요.cellEditor 'multiselect' picks several items in one cell. The input shows the picked labels joined together, and the list toggles items with Space or a click. The value is an array in option order, and selectAll adds a select-all row. #multiselect#cellEditor#editorParams#multiselect#cellEditor#editorParams 활용Intermediate 구분 글자로 이은 글자로 저장Store as a separated string multiselect의 valueAs 'string'은 고른 값을 separator로 이은 글자로 저장해요. 화면과 복사·내보내기는 같은 구분 글자를 쓰고, 붙여넣기는 글자를 잘라 선택지와 맞춰요. 모두 끄면 emptyAs에 따라 빈 글자나 null이 돼요.valueAs 'string' of multiselect stores the picked values joined by the separator. Display, copy and export use the same separator, and paste splits the text and matches it to the options. Switching everything off gives an empty string or null depending on emptyAs. #multiselect#valueAs#separator#multiselect#valueAs#separator 활용Intermediate 서버에 물어 목록 채우기Fill the list by asking a server cellEditor 'remote'는 글자를 치면 debounceMs 뒤에 source를 한 번 불러 목록을 채워요. 새 글자가 오면 이전 요청은 취소되고 늦게 온 응답은 버려요. 저장되는 값은 고른 항목의 value이고, 칸에 보일 글자는 formatValue가 정해요.cellEditor 'remote' calls source once after debounceMs to fill the list. A new key cancels the previous request and a late response is dropped. The stored value is the picked item's value, and formatValue decides what the cell shows. #remote#cellEditor#source#remote#cellEditor#source 심화Advanced 실패·빈 결과·느린 응답Failures, empty results and slow responses remote 편집기의 요청이 실패하면 목록 안에 오류 글자가 나오고 error 이벤트가 한 번 가요. 결과가 비면 noResultsText가, 기다리는 동안 loadingText가 보여요. 느린 응답 도중 새 글자를 치면 이전 요청이 취소되고 그 응답은 버려져요.When a remote editor request fails, an error text appears in the list and one error event is sent. An empty result shows noResultsText and waiting shows loadingText. Typing during a slow response cancels the old request and drops its answer. #remote#error#abort#remote#error#abort 활용Intermediate 행마다 다른 선택지 주기Give each row its own options editorOptions를 함수로 주면 편집기를 여는 때 그 행에 맞는 목록이 나와요. 목록이 비면 편집기가 열리지 않고 이유를 알려요. optionsFrom은 다른 컬럼의 값으로 목록을 만들어요.With editorOptions as a function the editor opens with the list for that row. An empty list keeps the editor closed and says why. optionsFrom builds the list from another column. #editorOptions#optionsFrom#select#editorOptions#optionsFrom#select 활용Intermediate 행마다 다른 편집기 쓰기Use a different editor per row cellEditorFor로 같은 컬럼에서 행마다 편집기를 골라요. 종류가 choice인 행은 드롭다운, number인 행은 숫자 입력, 나머지는 글자 입력이에요.cellEditorFor picks the editor per row in the same column: a dropdown for choice rows, a number input for number rows and a text input for the rest. #cellEditorFor#per-row editor#행마다 편집기#cellEditorFor#per-row editor 입문Beginner 달 칸 편집: 달 버튼에서 고르기Edit months from a month panel kind: 'month' 컬럼은 날 격자 없이 12개 달 버튼이 열려요. 값은 YYYY-MM 글자이고 min·max 밖의 달은 고를 수 없어요.A kind: 'month' column opens twelve month buttons with no day grid. The value is a YYYY-MM string and months outside min and max cannot be picked. #edit#month#month picker#edit#month#month picker 입문Beginner 여러 줄 칸 편집: textarea 편집기Edit several lines: the textarea editor cellEditor: 'textarea'로 긴 글을 여러 줄 입력해요. Enter는 줄바꿈, Ctrl+Enter가 확정이고, 칸에는 첫 줄만 보이거나(wrap이면 전체) 보여요.cellEditor: 'textarea' edits long text over several lines. Enter adds a line, Ctrl+Enter confirms, and the cell shows the first line only (or all lines with wrap). #edit#textarea#multi-line#edit#textarea#multi-line 활용Intermediate 색 칸 편집: 견본과 16진 입력Edit colors: swatches and hex input cellEditor: 'color'는 견본 16개와 16진 입력칸을 열어요. 값은 소문자 #rrggbb이고, alpha를 켜면 #rrggbbaa예요. 칸에는 작은 견본과 글자가 보여요.cellEditor: 'color' opens 16 swatches and a hex input. The value is a lowercase #rrggbb, or #rrggbbaa with alpha. The cell shows a small swatch and the text. #edit#color#color picker#edit#color#color picker 입문Beginner 주 칸 편집: ISO 주 고르기Edit weeks: pick an ISO week kind: 'week' 컬럼은 날 격자의 줄 하나가 한 주예요. 값은 YYYY-Www 글자이고, 월요일에 시작해요. min·max 밖의 주는 줄 전체가 선택 불가예요.In a kind: 'week' column one row of the day grid is one week. The value is a YYYY-Www string and weeks start on Monday. Weeks outside min and max are disabled as a whole row. #edit#week#iso week#edit#week#iso week

스파크 차트Sparklines 4

셀 안의 작은 차트Tiny charts inside cells

활용Intermediate 작은 추세 그래프를 칸 안에 넣기A tiny trend chart inside a cell 숫자 목록을 칸 안의 작은 꺾은선 그래프로 보여 줘요. 처음보다 오르면 초록, 내리면 빨강이고, 새 값이 들어오면 바로 다시 그려요.Show a list of numbers as a small line chart in the cell. Green when it rose from the start, red when it fell; it redraws when new values arrive. #sparkline#SVG#cellRenderer#sparkline#SVG#cellRenderer 입문Beginner 내장 꺾은선 스파크The built-in line sparkline cellRenderer 'sparkline'은 숫자 배열을 칸 안의 작은 꺾은선으로 그려요. curve로 곡선, area로 영역, marks로 표시 점, tone으로 색을 정해요. 직접 만든 렌더러 없이도 접근 이름과 어두운 모드가 따라와요.cellRenderer 'sparkline' draws an array of numbers as a small line in the cell. curve makes it smooth, area fills below it, marks picks the dots and tone sets the color. Without a custom renderer you still get an accessible name and dark mode. #sparkline#spark#cellRenderer#sparkline#spark#cellRenderer 입문Beginner 막대 스파크: 음수와 강조Bar sparkline: negatives and highlight cellRenderer 'sparkbars'는 0을 기준선으로 위·아래 막대를 그려요. 음수는 negativeTone 색이고 highlight를 주면 마지막·최소·최대 막대만 진하게 보여요. min·max로 축을 맞추면 줄끼리 높이를 비교할 수 있어요.cellRenderer 'sparkbars' draws bars up and down from a zero baseline. Negatives use negativeTone and highlight makes only the last, minimum or maximum bar strong. Fixing the axis with min and max lets you compare heights across rows. #sparkbars#spark#bars#sparkbars#spark#bars 입문Beginner 승패 스파크Win/loss sparkline cellRenderer 'sparkwinloss'는 값의 크기와 상관없이 같은 높이로 승은 위, 패는 아래, 무는 얇은 막대를 그려요. 기본 판정은 부호이고 when으로 기준을 바꿀 수 있어요.cellRenderer 'sparkwinloss' draws equal-height marks, up for a win, down for a loss and a thin bar for a draw, whatever the size. The default rule is the sign, and when changes the rule. #sparkwinloss#spark#승패#sparkwinloss#spark#when

직접 만드는 셀Custom cells 4

내가 만든 셀 표현Your own cell rendering

활용Intermediate 내장 배지와 직접 만든 칸 비교하기Built-in badge versus a custom cell 같은 상태 배지를 내장 기능으로 한 줄에, 직접 만든 칸으로 한 줄에 만들어서 어떻게 다른지 비교해요. 내장으로 되면 내장을, 모자랄 때만 직접 만들어요.Build the same status badge once with the built-in feature and once as a custom cell, and compare. Use the built-in one when it fits; build your own only when it falls short. #cellRenderer#custom renderer#badge#cellRenderer#custom renderer#badge 입문Beginner 아이콘·이모지와 글자를 함께 보여 주기Show an icon or emoji together with text 파일 종류, 국기, 날씨처럼 그림 하나를 글자 앞에 붙여서 한눈에 알아보게 해요. 그림은 꾸밈이고, 뜻은 항상 옆의 글자가 전해요.Put a small picture before the text, such as file type, flag or weather, for quick recognition. The picture is decoration; the text always carries the meaning. #cellRenderer#emoji#icon#cellRenderer#emoji#icon 활용Intermediate 체크 표시와 켜고 끄는 스위치Check marks and on/off switches 참/거짓 값을 내장 체크 표시(보기만)와 직접 만든 스위치(눌러서 바꾸기)로 보여 줘요. 스위치를 누르면 값이 바뀌어요.Show true/false values as a built-in check mark (view only) and a custom switch (click to change). Clicking the switch changes the value. #checkbox#switch#cellRenderer#checkbox#switch#cellRenderer 활용Intermediate 줄 안의 버튼: 상세 보기와 삭제Buttons inside a row: details and delete 표의 줄마다 "상세"와 "삭제" 버튼을 넣어요. 버튼을 누르면 그 줄에 대한 일을 해요. 지운 줄은 다시 넣을 수 있어요.Put "Details" and "Delete" buttons in every row. Pressing one acts on that row. Deleted rows can be put back. #cellRenderer#button#cellClicked#cellRenderer#button#cellClicked

직접 만드는 편집기Custom editors 5

내가 만든 편집 도구Your own edit tools

활용Intermediate 긴 글을 여러 줄로 고치기Edit long text over several lines 칸에는 첫 줄만 보여 주고, 고칠 때는 여러 줄 입력창이 열려요. Enter는 줄바꿈이고, 확정은 Ctrl+Enter나 "확정" 버튼이에요. 전체 내용은 마우스를 올리면 말풍선으로 읽을 수 있어요. 입력창은 칸 아래에 열려요(editorBox).The cell shows only the first line, and editing opens a multi-line box. Enter adds a line; commit with Ctrl+Enter or the "Confirm" button. Hover to read the whole text in a tooltip. The box opens below the cell (editorBox). #edit#textarea#custom editor#edit#textarea#custom editor 심화Advanced 내가 만드는 편집기: 색상·슬라이더·별점Build your own editors: color, slider, stars 내장 편집기로 부족하면 직접 만들 수 있어요. 편집기는 "화면 만들기, 값 돌려주기, 확정 알리기"만 하는 작은 객체예요. 색상 고르기, 슬라이더, 별점을 예로 만들었고, 칸에 보이는 모양(막대·별)은 내장 렌더러를 그대로 써요.When the built-in editors are not enough, write one: a small object that builds its UI, returns a value and says when to commit. Color swatches, a slider and stars are shown, while the cell display reuses built-in renderers. #edit#custom editor#cellEditor#edit#custom editor#cellEditor 활용Intermediate 수량 편집기: − 숫자 + 버튼으로 바꾸기Quantity editor with − and + buttons 숫자 칸을 편집할 때 −, + 버튼과 위·아래 화살표 키로 한 칸씩 바꿀 수 있는 편집기를 직접 만들어요. 범위(0~99)를 벗어나면 확정되지 않아요.Build an editor for number cells with − and + buttons and Up/Down arrow keys. A value outside 0–99 is not committed. #cellEditor#editor#number#cellEditor#editor#number 활용Intermediate 색 고르기 편집기Color picker editor 색 칸은 색 네모와 색 코드를 보여 주고, 편집할 때는 브라우저의 색 고르기가 열려요. 색을 고르면 바로 확정돼요.The color cell shows a swatch and its code, and editing opens the browser’s color picker. Picking a color commits at once. #cellEditor#color#editor#cellEditor#color#editor 활용Intermediate 날짜 편집기: 2027년 안에서만 고르기Date editor limited to 2027 달력으로 날짜를 고치되 2027년 안의 날짜만 받아요. 달력도 그 범위로 좁히고, 직접 써 넣은 날짜가 범위를 벗어나면 이유와 함께 막아요.Edit dates with a calendar but accept only dates in 2027. The calendar is narrowed to that range, and a typed date outside it is refused with a reason. #cellEditor#date#validation#cellEditor#date#validation

표시 형식Formatting 5

숫자·날짜 표시 형식Number and date formats

입문Beginner 용량·시간·금액·날짜를 읽기 쉽게 보여 주기Readable sizes, durations, money and dates 바이트를 KB·MB로, 초를 시:분:초로, 금액 뒤에 "원", 날짜를 한국어로 바꿔 보여 줘요. 값은 숫자 그대로라서 정렬은 원래 값으로 해요.Show bytes as KB/MB, seconds as h:mm:ss, money with a $ sign and dates in long English form. Values stay numbers, so sorting uses the real values. #formatValue#format#units#formatValue#format#units 입문Beginner 숫자 표시 형식 정하기Set the number display format 컬럼의 format.number로 소수 자릿수, 천 단위 구분, 접두·접미, 반올림 방식, 음수 모양, 빈 값 글자를 선언해요. 값은 그대로이고 보이는 글자만 바뀌어요.format.number on a column declares decimals, thousands separator, prefix and suffix, rounding mode, negative style and the text for empty values. The value is unchanged; only the shown text differs. #format#number#decimals#format#number#decimals 입문Beginner 날짜·시각 표시 패턴 정하기Set the date and time display pattern format.date.pattern으로 날짜와 시각이 보이는 모양을 정해요. 토큰은 YYYY YY MM M DD D HH H mm ss A예요. 값은 그대로라 편집기·정렬·내보내기에는 영향이 없어요.format.date.pattern sets how dates and times look. Tokens are YYYY YY MM M DD D HH H mm ss A. The value stays the same, so the editor, sort and export are unaffected. #format#date#pattern#format#date#pattern 활용Intermediate YYYYMMDD로 저장된 날짜 다루기Work with dates stored as YYYYMMDD format.date.stored를 알려 주면 행 데이터가 20260305 같은 문자열이어도 달력, 정렬, 검증, 붙여넣기가 표준 날짜로 동작하고 쓸 때만 저장 모양으로 바뀌어요.With format.date.stored the calendar, sort, validation and paste work on a standard date even when the row data holds strings like 20260305; only the write converts back to the stored shape. #format#stored#date#format#stored#date 활용Intermediate 입력한 글자를 값으로 바꾸는 parseTurn typed text into a value with parse 컬럼의 parse(raw, row)가 직접 입력과 붙여넣기의 글자를 값으로 바꿔요. 값을 돌려주면 쓰이고, 예외를 던지거나 값을 돌려주지 않으면 값이 올바르지 않다고 막혀요.The column parse(raw, row) turns typed and pasted text into a value. A returned value is used; throwing or returning nothing refuses the input as invalid. #parse#format#paste#parse#format#paste

편집Editing 64

입력 검증과 데이터 변경Validation and data changes

입문Beginner 칸을 직접 고치기Edit cells in place 글자·숫자 칸은 더블클릭하거나 눌러 둔 채로 바로 입력하면 고칠 수 있고, 목록과 체크박스 칸은 한 번 누르면 돼요. 글자·숫자·목록·체크박스마다 알맞은 편집기가 열리고, 규칙에 어긋나면 확정되지 않고 이유가 나와요.Double-click a cell, or select it and just type. Text, numbers, lists and checkboxes each open a fitting editor, and a value that breaks a rule is refused with a reason. #edit#editable#validation#edit#editable#validation 입문Beginner 마우스 없이 입력하기: 편집 시작과 키보드 이동Entering data without the mouse 더블클릭, F2·Enter, 글자 입력, 코드의 편집 시작 호출로 편집을 시작할 수 있고, Enter는 확정, Esc는 취소, Tab은 다음에 고칠 수 있는 칸으로 가요. 읽기 전용 칸은 건너뛰어요.Start an edit by double-click, F2, Enter, typing, or startEdit from code. Enter commits, Esc cancels and Tab jumps to the next editable cell, skipping read-only ones. #edit#keyboard#startEdit#edit#keyboard#startEdit 활용Intermediate 조건에 따라 편집 막기Lock cells depending on conditions 줄마다 규칙으로 편집 가능 여부를 정할 수 있어요. 발송된 주문은 메모를 잠그고, 접수 상태일 때만 금액을 고치게 하는 식이에요. 상태를 바꾸면 규칙이 바로 적용돼요.You can decide per row whether a cell can be edited. A shipped order locks its memo, and the amount is editable only while the status is received. Changing the status applies the rule at once. #edit#editable#readonly#edit#editable#readonly 입문Beginner 틀린 값은 이유와 함께 막기Refuse bad values with a reason 컬럼마다 규칙(필수, 최대 길이, 범위, 내가 만든 규칙)을 두면, 어긋나는 값은 확정되지 않고 칸에 이유가 나와요. 내가 만든 규칙은 같은 줄의 다른 칸과 비교할 수도 있어요.Put rules on a column (required, max length, range, your own) and a bad value is not committed; the reason shows on the cell. A custom rule can compare with other cells of the same row. #validation#required#custom rule#validation#required#custom rule 활용Intermediate 저장하기 전에 빈 필수 칸 점검Check required cells before saving 처음부터 비어 있던 칸은 고치지 않으면 검사되지 않아요. 그래서 모든 줄을 훑어 빈 칸을 컬럼별로 모아 보여 주고, 저장(save)은 바뀐 줄 전부를 검사해서 하나라도 틀리면 아무것도 보내지 않게 했어요.Cells that start empty are not checked until someone edits them. So scan every row and group the gaps per column, and let save() validate all changed rows and send nothing if one is wrong. #validation#required#save#validation#required#save 활용Intermediate 여러 칸의 관계를 줄 단위로 검증하기Validate relations between cells per row 칸 하나의 규칙으로는 시작과 종료처럼 두 칸의 관계를 검사하기 어려워요. 줄 검증은 줄을 확정할 때 줄 전체를 보고 문제가 있는 칸과 이유를 알려 줘요. 문제가 있으면 그 줄이 고칠 때까지 열려 있어요.A per-cell rule cannot compare two cells such as start and end. rowValidator looks at the whole row when it is committed and reports which cell is wrong and why; the row stays open until fixed. #rowValidator#validation#editMode row#rowValidator#validation#editMode row 입문Beginner 줄 단위로 고치고 한 번에 확정하기Edit a whole row and commit it at once 줄 편집 모드에서는 Tab으로 같은 줄의 칸들을 차례로 고치고, 마지막에 줄 전체를 한 번에 확정해요. Esc 한 번이면 그 줄에서 고친 것이 모두 사라져요. 칸마다 바로 확정하는 기본 방식과 바꿔 가며 비교해 볼 수 있어요.In row mode, Tab walks through the cells of a row and the whole row commits at once. One Esc discards everything edited in that row. Compare with the default mode where each cell commits on its own. #editMode#row edit#rowEditCommitted#editMode#row edit#rowEditCommitted 활용Intermediate 줄 추가·복제·삭제와 새 줄 기본값Add, duplicate and delete rows with defaults 새 줄은 기본값 틀(오늘 날짜 등)로 맨 위에 넣고 바로 입력할 수 있어요. 선택한 줄을 복제하거나 삭제하고, 줄 안의 버튼으로 수정·삭제도 해요. 저장하기 전에는 모두 "변경"으로 쌓여서 한 번에 되돌릴 수 있어요.New rows start from a template (today's date, defaults) on top, ready for typing. Duplicate or delete selected rows, or use the buttons inside a row. Until saved, everything piles up as changes you can discard at once. #줄 추가#줄 삭제#복제 활용Intermediate 고른 줄에 한꺼번에 적용하기Apply a change to all selected rows 줄을 여러 개 골라 상태·우선순위를 한 번에 바꾸고, 맨 위 줄의 담당자를 나머지에 채우고, 모두 1시간씩 더할 수 있어요. 여러 줄을 한 번에 고쳐도 변경 기록에는 한 묶음으로 남아서 저장 전에 한꺼번에 버릴 수 있어요.Pick several rows and change status or priority at once, fill the top row's owner into the rest, or add an hour to all. Even a multi-row change is one batch in the change log, so you can discard it before saving. #updateRows#bulk edit#fill down#updateRows#bulk edit#fill down 활용Intermediate 엑셀에서 복사한 칸 붙여넣기Paste cells copied from a spreadsheet 엑셀이나 시트에서 복사한 칸을 Ctrl+V로 붙여 넣으면 고른 칸부터 채워져요. 칸 편집과 같은 검증을 거치고, 안 맞는 칸은 건너뛰며 몇 칸이 들어갔는지 알려 줘요. 코드로 붙여 넣고 복사할 수도 있어요.Paste cells copied from Excel or a sheet with Ctrl+V and they fill from the selected cell. They go through the same validation as edits, bad cells are skipped and the count is reported. You can call pasteCells and copyCells from code too. #paste#copy#clipboard#paste#copy#clipboard 활용Intermediate 저장 방식 고르기: 모아서·바로·자동·저장 안 함Choose a save mode 고친 값을 모아서 한 번에 저장할지, 확정하는 즉시 저장할지, 가만히 있으면 자동 저장할지, 아예 추적하지 않을지 고를 수 있어요. 저장 전에 보낼 내용을 확인하는 단계를 둘 수도 있어요.Choose whether edits are saved together, at once, automatically after a pause, or not tracked at all. You can also add a review step that shows what will be sent. #saveMode#batch#immediate#saveMode#batch#immediate 심화Advanced 저장이 실패해도 변경은 남기기Keep changes when saving fails 서버가 일부 줄만 거부하거나, 아예 응답하지 않아도 고친 값은 사라지지 않아요. 실패한 줄은 변경으로 남아서 고친 뒤 다시 저장할 수 있고, 응답이 없을 때는 기다리는 시간을 늘려 가며 다시 시도하는 처리기도 보여 줘요.If the server rejects some rows, or does not answer at all, your edits are not lost. Failed rows stay as changes you can fix and save again, and the handler retries with growing waits when the server is down. #saveHandler#saveFailed#retry#saveHandler#saveFailed#retry 활용Intermediate 오프라인에서 고친 것을 쌓아 두었다 보내기Queue edits offline and send them later 인터넷이 끊겨 서버로 못 보내도 고친 값은 표 안에 대기열로 남아요. 다시 온라인이 되면 쌓인 변경을 한 번에 보내요. (네트워크 상태는 실제가 아니라 선택 상자로 흉내 내요.)Even when the connection is down, edits stay in the grid as a queue and are sent together when back online. (The network state is simulated with the select, not real.) #오프라인#대기열#저장 심화Advanced 서버가 보낸 새 값과 내 수정 합치기Merge fresh server rows with your edits 다른 사람이 서버에서 값을 바꿨을 때, 서버가 보내 준 새 데이터를 표에 합칠 수 있어요. 내가 아직 저장하지 않은 수정과 부딪치면 서버 값을 따를지, 내 수정을 지킬지, 지키면서 어느 칸이 부딪쳤는지 알려 받을지 정할 수 있어요.When someone changes data on the server, merge the fresh rows into the grid. If it clashes with your unsaved edit, choose to follow the server, keep your edit, or keep it and be told which cells clashed. #병합#충돌#서버 값 심화Advanced 저장하려는데 누가 먼저 고쳤을 때When someone saved the same row first 서버가 줄마다 버전을 관리하면, 내가 저장하려는 줄이 그 사이 다른 사람에게 먼저 바뀌었을 때 서버가 거부해요. 거부된 줄은 변경으로 남아서 "내 수정을 최신 판 위에 다시 올리기"나 "서버 값 쓰기" 중에서 고를 수 있어요.If the server tracks a version per row, it rejects a save when someone changed that row first. The rejected row stays as a change and you can re-apply your edit on the latest version or take the server's value. #version#optimistic locking#saveHandler#version#optimistic locking#saveHandler 활용Intermediate 바뀐 내용만 CSV로 내려받기Download only the changes as CSV 표 전체가 아니라 "바뀐 칸"만 이전 값과 바뀐 값으로 CSV에 적어 내려받아요. 추가·삭제한 줄도 한 줄씩 남아서, 저장하기 전에 검토하거나 나중에 확인할 기록으로 쓸 수 있어요. 엑셀에서 한글이 깨지지 않게 만들어요.Download only the changed cells, with before and after values, as CSV. Added and removed rows get one line each, so the file can be reviewed before saving or kept as an audit trail. A BOM keeps Korean intact in Excel. #changes#csv#export#changes#csv#export 입문Beginner 달력으로 날짜 고르기Pick a date with the calendar 날짜 컬럼(kind: date)을 고치면 달력이 열려요. 주 번호, 한 주 시작 요일, 고를 수 없는 날(주말)을 옵션으로 정해요. 저장되는 값은 'YYYY-MM-DD' 글자 하나예요.Editing a date column opens a calendar. Week numbers, the first day of the week and days that cannot be picked (weekends) are options. The stored value is one 'YYYY-MM-DD' string. #editing#date#dateTime#editing#date#dateTime 입문Beginner 목록에서 시각 고르기Pick a time from the lists 시간 컬럼(kind: time)을 고치면 시·분 목록이 열려요. 분 간격, 고를 수 있는 시간대, 24시간/오전·오후 표시를 옵션으로 정해요. 저장되는 값은 항상 24시간 'HH:mm'이에요.Editing a time column opens hour and minute lists. The minute step, the allowed range and 24-hour or AM/PM display are options. The stored value is always 24-hour 'HH:mm'. #editing#time#dateTime#editing#time#dateTime 입문Beginner 날짜와 시간을 한 번에 고르기Pick a date and a time together 날짜+시간 컬럼(kind: datetime)을 고치면 달력과 시·분 목록이 함께 열리고 '확인'으로 한 번에 정해요. 저장되는 값은 'YYYY-MM-DD HH:mm' 글자 하나예요.Editing a datetime column opens a calendar and time lists together, and OK sets both at once. The stored value is one 'YYYY-MM-DD HH:mm' string. #editing#datetime#dateTime#editing#datetime#dateTime 활용Intermediate 고를 수 있는 날짜 제한하기Limit which dates can be picked 날짜 컬럼의 dateTime 옵션으로 고를 수 있는 범위(min, max), 막을 날(isDateDisabled), 한 주 시작 요일(weekStart)을 정해요. 달력과 직접 입력 모두 같은 규칙으로 막혀요.The dateTime option of a date column sets the pickable range (min, max), the days to block (isDateDisabled) and the first day of the week (weekStart). The calendar and typed input follow the same rules. #editing#date#dateTime#editing#date#dateTime 활용Intermediate 코드로 셀 값 쓰기Write cell values from code setCellValue·fillColumn·updateCells로 셀 하나, 열 전체, 여러 줄의 여러 열을 코드에서 한 번에 써요. 한 번 부르면 되돌리기 한 단계이고, 값이 그대로면 아무 일도 하지 않아요.setCellValue, fillColumn and updateCells write one cell, a whole column or several columns on several rows from code. Each call is one undo step and does nothing when the values are already equal. #setCellValue#fillColumn#updateCells#setCellValue#fillColumn#updateCells 활용Intermediate 입력칸 속성과 붙여넣기 검사 정하기Set input attributes and paste checks 컬럼의 editorParams로 편집 입력칸의 모바일 키보드, 글자 수 제한, 정렬, 안내 문구, 자동 완성을 정해요. pasteCheck를 'type-only'로 두면 붙여넣기에서는 값의 형식만 검사해요.editorParams sets the mobile keyboard, character limit, alignment, placeholder and autocomplete of the edit input. With pasteCheck 'type-only' a paste checks only the value type. #editorParams#maxLength#inputMode#editorParams#maxLength#inputMode 활용Intermediate 그룹 기준 컬럼을 고치면 행이 옮겨 가요Editing the grouping field moves the row 부서로 묶은 그리드에서 부서를 바꾸면 그 행이 새 그룹으로 옮겨 가요. 포커스와 선택은 그대로예요.In a grid grouped by department, changing the department moves the row to its new group. Focus and selection stay. #grouping#editing#그룹#grouping#editing 활용Intermediate 원할 때 한꺼번에 검증하기Validate whenever you want validateRows로 지금 데이터를 규칙에 맞춰 한 번에 검사해요. 편집하지 않아도 되고, 이벤트·포커스·스크롤은 그대로예요. unique 규칙은 같은 컬럼의 값이 겹치지 않게 하고, check로 행 단위 검사를 덧붙일 수 있어요.validateRows checks the current data against the rules in one call, without editing; events, focus and scroll are untouched. The unique rule keeps a column's values apart, and check adds row-level validation. #validateRows#unique#validation#validateRows#unique#validation 활용Intermediate 편집 중 키 이동을 내 방식으로 바꾸기Change how keys move while editing editNav로 Enter 뒤 이동, Tab으로 편집 시작 여부, 읽기 전용 컬럼 건너뛰기, 편집 중 ↑↓ 확정, Backspace로 편집 시작을 고르고, 컬럼의 navigable로 키보드 이동에서 뺄 칸을 정해요.editNav picks where Enter goes, whether Tab starts an edit, skipping read-only columns, Up/Down commit and Backspace-to-edit; a column's navigable keeps it out of keyboard movement. #editNav#keyboard#navigable#editNav#keyboard#navigable 활용Intermediate 숫자 입력 규칙과 백분율 편집기Number input rules and the percent editor editorParams의 decimals·negative·group·scale로 숫자 입력을 키를 누르는 순간 걸러요. cellEditor 'percent'는 0.25를 25%로 보여 주고 저장은 0.25로 해요.editorParams decimals, negative, group and scale filter number input as you type. cellEditor 'percent' shows 0.25 as 25% and stores 0.25. #editorParams#decimals#negative#editorParams#decimals#negative 활용Intermediate 글자 입력 규칙: 대소문자, 가리기, 형식 검사Text input rules: case, secret and pattern editorParams의 case·secret·pattern·patternMessage로 글자 입력을 정해요. 상품 코드는 대문자로 바뀌고 형식(영문 2자와 숫자 3자)을 입력하는 동안 안내하며, 비밀번호 칸은 가려져요.editorParams case, secret, pattern and patternMessage shape text input. A product code turns upper-case and is checked against a format (2 letters and 3 digits) while typing, and a password cell is hidden. #editorParams#case#secret#editorParams#case#secret 활용Intermediate 훅으로 편집과 삭제 막기Block edits and removals with hooks 옵션 hooks의 beforeEdit과 beforeRemoveRows가 false를 돌려주면 편집기가 열리지 않고 행이 지워지지 않아요. 막힌 일은 이벤트도 되돌리기 기록도 남기지 않아요.When beforeEdit or beforeRemoveRows in the hooks option returns false, the editor does not open and the rows are not removed. A blocked action leaves no event and no undo entry. #hooks#beforeEdit#beforeRemoveRows#hooks#beforeEdit#beforeRemoveRows 활용Intermediate 훅으로 확정할 값 바꾸기Change the value to commit with a hook hooks.transformEdit이 확정 직전 값을 바꿔 돌려줘요. 코드는 공백을 없애 대문자로, 가격은 10원 단위로 맞춰요. 편집기와 붙여넣기가 같은 길을 지나고 검증은 바뀐 값을 봐요.hooks.transformEdit returns a replacement just before the commit. Codes lose spaces and become upper case, prices round to 10. The editor and paste share the path, and validation sees the changed value. #hooks#transformEdit#paste#hooks#transformEdit#paste 활용Intermediate 훅으로 키와 선택 다루기Handle keys and selection with hooks hooks.onKeyDown이 true를 돌려주면 그리드가 그 키(여기서는 Delete)를 처리하지 않고, hooks.canSelect가 false면 그 셀은 선택되지 않아요. hooks.rowRendered는 행 요소가 채워질 때마다 불려요.When hooks.onKeyDown returns true the grid ignores that key (Delete here), and when hooks.canSelect returns false the cell is not selected. hooks.rowRendered runs each time a row element is filled. #hooks#onKeyDown#canSelect#hooks#onKeyDown#canSelect 활용Intermediate 날짜 선택기 열기 방식 정하기Choose how the date picker opens dateTime의 openOnEdit은 편집을 시작하면 선택기를 바로 열고, pickOnly는 입력칸을 읽기 전용으로 두고 선택기로만 값을 정해요. confirm은 날을 누른 뒤 확인 단추로 확정해요. startDate는 값이 없을 때 달력이 보여 줄 달이에요.openOnEdit in dateTime opens the picker as soon as editing starts, and pickOnly makes the input read-only so only the picker sets the value. confirm adds an OK step after clicking a day. startDate is the month shown when there is no value. #dateTime#openOnEdit#pickOnly#dateTime#openOnEdit#pickOnly 활용Intermediate 시·초 간격과 고를 수 있는 시간Hour and second steps and allowed times hourStep과 secondStep으로 시·초 목록 간격을 줄이고, allowedHours·allowedMinutes로 고를 수 있는 시간을 정해요. 나머지는 흐리게 막히고 직접 입력해도 검증이 막아요.hourStep and secondStep thin out the hour and second lists, and allowedHours and allowedMinutes choose the selectable times. The rest are dimmed, and validation also refuses them when typed. #dateTime#hourStep#secondStep#dateTime#hourStep#secondStep 활용Intermediate 달력 글자 바꾸기Change the calendar text dateTime.labels로 달력의 월 이름, 요일 머리글, 달 제목, 연도 제목을 원하는 글자로 바꿔요. 읽어 주는 전체 날짜는 그대로예요.dateTime.labels replaces the month names, weekday heads, month title and year title of the calendar. The spoken full date stays the same. #dateTime#labels#calendar#dateTime#labels#calendar 입문Beginner 행·셀의 변경 상태 바로 묻기Ask the change state of a row or cell getRowState, isCellChanged, getRowsWithState로 변경 목록 전체를 읽지 않고 행과 셀의 상태를 물어요. 변경이 처음 생기면 batchStarted, 목록이 비면 batchEnded가 나가요.getRowState, isCellChanged and getRowsWithState ask the state of a row or cell without reading the whole change list. batchStarted fires with the first change and batchEnded when the list is empty again. #getRowState#isCellChanged#getRowsWithState#getRowState#isCellChanged#getRowsWithState 입문Beginner 칸 끝의 편집 시작 버튼An edit start button at the end of a cell 컬럼의 editButton은 칸 끝에 작은 연필 버튼을 달아 터치에서도 편집을 열게 해요. 'selected'는 고른 칸에만, 'hover'는 포인터가 올라간 칸에, 'always'는 편집할 수 있는 모든 칸에 보여요.A column's editButton puts a small pencil button at the end of a cell so touch users can open the editor too. 'selected' shows it in the chosen cell, 'hover' under the pointer, and 'always' in every editable cell. #editButton#editing#touch#editButton#editing#touch 활용Intermediate 일부 행·셀만 되돌리기와 저장 없이 확정하기Revert only some rows or cells, or accept without saving revertRows와 revertCells는 고른 행·셀만 처음 값으로 되돌리고(삭제한 행은 원래 자리에 다시 들어와요), acceptRows는 저장 핸들러를 부르지 않고 현재 값을 새 처음 값으로 삼아요.revertRows and revertCells put only the chosen rows or cells back to their original values (a removed row returns to its place), and acceptRows keeps the current values as the new originals without calling the save handler. #revertRows#revertCells#acceptRows#revertRows#revertCells#acceptRows 심화Advanced 다른 그리드의 변경 기록 적용하기Apply the changes of another grid applyChanges(changes)는 다른 그리드의 getChanges() 결과를 같은 컬럼의 그리드에 적용해요. 신규는 추가, 수정은 셀 단위 갱신, 삭제는 제거이고 없는 키는 건너뛰며 { applied, skipped }를 돌려줘요.applyChanges(changes) applies the getChanges() result of another grid to a grid with the same columns. Added rows are added, modified rows updated per cell, removed rows removed; unknown keys are skipped and { applied, skipped } is returned. #applyChanges#getChanges#sync#applyChanges#getChanges#sync 활용Intermediate 지운 행을 취소선으로 남기기Keep removed rows with a strike-through 옵션 removeMode를 'mark'로 두면 removeRows가 행을 지우지 않고 취소선으로 표시만 해요. 표시한 행은 편집·선택할 수 없고 합계에서 빠지며, 확정하면 실제로 지워지고 롤백하면 모두 돌아와요.With removeMode 'mark' removeRows only marks the row with a strike-through instead of deleting it. Marked rows cannot be edited or selected and drop out of the totals; a commit deletes them and a rollback brings them all back. #removeMode#mark#removeRows#removeMode#mark#removeRows 활용Intermediate 숨긴 행 되살리기와 실제로 지우기Restore hidden rows or delete them for real removeMode 'hide'는 지운 행을 화면에서 숨기되 저장소에 남겨요. restoreRows로 되살리고, purgeRemoved로 실제로 지우면 변경 기록에는 삭제로 남아 저장 핸들러가 볼 수 있어요.removeMode 'hide' hides removed rows but keeps them in the store. restoreRows brings them back, and purgeRemoved really deletes them while the change record keeps them as removed for the save handler. #removeMode#hide#restoreRows#removeMode#hide#restoreRows 활용Intermediate 복사 구분 문자와 복사 글자 정하기Choose the copy delimiter and copied text 옵션 clipboard로 구분 문자를 세미콜론으로 바꾸고 잘라내기를 끄고, 컬럼 copyValue로 복사 글자를 따로 정해요. 복사 호출에서 as를 'value'로 주면 저장된 원래 값이 나와요.With the clipboard option the delimiter becomes a semicolon and cut is turned off, and column copyValue sets the copied text. Passing as 'value' to the copy call gives the stored raw values. #clipboard#delimiter#copyValue#clipboard#delimiter#copyValue 활용Intermediate 붙여넣은 줄을 새 행으로 더하기Add pasted lines as new rows 옵션 clipboard.addRows를 켜면 붙여넣은 줄이 표 끝을 넘을 때 새 행이 돼요. 결과의 added가 더해진 행 수이고, 새 행과 칸 값은 되돌리기 한 번에 같이 돌아와요.With clipboard.addRows on, pasted lines past the last row become new rows. added in the result is how many, and the new rows and cell values undo together in one step. #clipboard#addRows#pasteCells#clipboard#addRows#pasteCells 활용Intermediate 편집 값을 앱이 적용하기Let the app apply an edit 옵션 editApply를 'app'으로 두면 편집을 확정해도 그리드가 값을 쓰지 않고 editRequested로 앱에 넘겨요. 기다리는 칸은 흐려지고, 앱이 apply()를 부르면 그때 쓰고 되돌리기 한 단계가 생겨요.With editApply 'app' a confirmed edit is not written by the grid but handed to the app via editRequested. The waiting cell is dimmed and apply() writes it then, with one undo step. #editApply#editRequested#apply#editApply#editRequested#apply 활용Intermediate 서버가 거절한 편집 돌려보내기Send a rejected edit back editApply 'app'에서 앱이 reject(message)를 부르면 값은 그대로이고 칸에 거절 표시와 이유가 떠요. 이 예제는 수량 100 이상을 거절해요.With editApply 'app' the app calls reject(message): the value stays and the cell shows the rejected mark with the reason. This example rejects quantities of 100 or more. #editApply#editRejected#reject#editApply#editRejected#reject 활용Intermediate 여러 쓰기를 한 번에 되돌리기Undo many writes as one beginBulkEdit과 endBulkEdit 사이의 쓰기(fillColumn, updateCells 등)를 되돌리기 한 단계로 묶어요. endBulkEdit({ commit: false })는 묶음을 한 번에 취소해요.Writes between beginBulkEdit and endBulkEdit (fillColumn, updateCells and so on) become one undo step. endBulkEdit({ commit: false }) cancels the whole group. #beginBulkEdit#endBulkEdit#undo#beginBulkEdit#endBulkEdit#undo 활용Intermediate 행 상태를 맨 앞 칸에 아이콘으로 보이기Show the row state as an icon in a leading column stateColumn을 켜면 추가·수정·삭제 표시한 행이 맨 앞 칸에 아이콘과 접근 이름으로 보여요. restore:true면 아이콘이 버튼이 되어 그 행만 되돌려요.With stateColumn on, added, modified and removed rows show an icon with an accessible name in a leading cell. With restore:true the icon is a button that reverts just that row. #stateColumn#restore#revertRows#stateColumn#restore#revertRows 활용Intermediate 행 번호 모양과 체크박스 숨기기Row number options and hidden checkboxes rowNumbers로 머리글 글자·폭·첫 번호를 정하고 reverse로 아래에서부터 세요. isRowCheckVisible이 false를 돌려준 행은 체크박스를 그리지 않아요.rowNumbers sets the header text, width and first number, and reverse counts from the bottom. Rows for which isRowCheckVisible returns false draw no checkbox. #rowNumbers#isRowCheckVisible#extraColumns#rowNumbers#isRowCheckVisible#extraColumns 활용Intermediate 행 번호·체크박스·상태 칸을 실행 중에 바꾸기Change the utility columns at run time setUtilityColumn으로 행 번호·체크박스·상태 칸을 켜고 끄고 순서와 폭을 바꿔요. getUtilityColumns는 지금 상태를 읽어요.setUtilityColumn shows, hides, reorders and resizes the row number, checkbox and state columns, and getUtilityColumns reads the current state. #setUtilityColumn#getUtilityColumns#extraColumns#setUtilityColumn#getUtilityColumns#extraColumns 활용Intermediate 부모를 바꾸면 아래 컬럼 비우기Clear child columns when the parent changes 컬럼의 cascade는 그 컬럼의 값이 실제로 바뀐 편집 뒤에 같은 행의 아래 컬럼(children)을 되돌려요. 기본은 비우기이고 편집할 수 없는 칸도 비워져요. 부모와 아래 칸은 되돌리기 한 단계이고, 붙여넣기와 지우기 키에서도 같아요.A column's cascade resets the child columns of the same row after an edit that actually changes it. The default clears them, and non-editable cells are cleared too. The parent and children are one undo step, also for paste and the clear key. #cascade#editorOptions#undo#cascade#editorOptions#undo 입문Beginner 그리드 안에 안내 띠 띄우기Show a notice strip inside the grid showNotice로 그리드 위쪽에 안내 한 줄을 띄워요. 톤(info·success·warning·danger)마다 색과 읽기 방식이 다르고, ttl이 지나면 사라지며 새로 부르면 바뀌어요.showNotice puts a one-line strip at the top of the grid. Each tone (info, success, warning, danger) has its own colors and announcement, a ttl removes it, and a new call replaces it. #showNotice#clearNotice#tone#showNotice#clearNotice#tone 활용Intermediate 셀 옆에 토스트 띄우기Show a toast next to a cell showCellToast는 지정한 칸 아래에 짧은 안내를 띄워요. 칸이 그려져 있지 않으면 그리드 위쪽에 붙고, 스크롤은 움직이지 않아요. 한 번에 하나만 보여요.showCellToast shows a short message below the given cell. If the cell is not drawn it sits at the top of the grid, and it never scrolls. Only one is visible at a time. #showCellToast#clearCellToast#토스트#showCellToast#clearCellToast#error.cell 활용Intermediate 기본값이나 계산한 값으로 되돌리기Reset to defaults or computed values cascade의 reset은 'clear'(비우기), 'default'(아래 컬럼의 defaultValue), 또는 (아래 컬럼 id, 새 행)을 받는 함수예요. 함수는 부모가 바뀐 새 행을 보고 컬럼마다 다른 값을 돌려줄 수 있어요. 함수가 던지면 그 칸만 건너뛰고 error 이벤트로 알려요.The reset of cascade is 'clear', 'default' (the child's defaultValue) or a function taking the child column id and the new row. The function sees the changed row and can return a different value per column. If it throws, only that cell is skipped and an error event is reported. #cascade#reset#defaultValue#cascade#reset#defaultValue 활용Intermediate 편집을 시작하며 목록 바로 열기Start editing with the list open startEdit(…, { open: true })는 선택 목록이나 달력을 편집을 시작하자마자 열어요. setEditorValue는 열린 편집기에 값을 써 넣고 확정은 하지 않아요.startEdit(…, { open: true }) opens the select list or calendar as soon as the edit starts. setEditorValue writes into the open editor without committing. #startEdit#open#setEditorValue#startEdit#open#setEditorValue 활용Intermediate 달 컬럼 필터와 내보내기Filter and export a month column 달 컬럼(kind: 'month')은 필터 칸에서 달 패널로 고르거나 >=2026-06 처럼 쓸 수 있고, 내보내기에는 YYYY-MM 글자로 나가요(xlsx는 yyyy-mm 서식의 날짜 셀).A month column (kind: 'month') can be filtered by picking from a month panel or typing >=2026-06, and exports as YYYY-MM text (a yyyy-mm date cell in xlsx). #month#filter#export#month#filter#export 활용Intermediate 셀 범위를 끌어서 옮기기Move a cell range by dragging cellDrag를 켜면 이미 고른 셀 범위를 끌어서 같은 크기로 옮겨요. 덮이지 않는 원본 칸은 비워지고, 되돌리기는 한 단계예요. 메모 열은 cellDraggable: false로 막았어요.With cellDrag on, you can drag an already selected cell range to move it to a rectangle of the same size. Source cells that are not covered are cleared and undo is one step. The note column is blocked with cellDraggable: false. #cell drag#drag and drop#move#cell drag#drag and drop#move 활용Intermediate 셀 범위를 끌어서 복사하기Copy a cell range by dragging cellDrag의 mode를 'copy'로 두면 끌어 놓은 곳에 값이 복사되고 원본은 그대로예요. 놓을 때 Ctrl(Mac은 Cmd)을 누르면 이동이 돼요.With cellDrag mode 'copy', the dropped values are copied and the source stays. Hold Ctrl (Cmd on Mac) at drop time to move instead. #cell drag#drag and drop#copy#cell drag#drag and drop#copy 활용Intermediate 채우기 핸들로 칸 채우기Fill cells with the fill handle cellFill을 켜면 고른 칸 끝의 작은 네모를 끌어 아래·오른쪽으로 채워요. 숫자는 같은 간격으로 이어 가고 글자는 되풀이하며, 되돌리기는 한 단계예요. Ctrl+D·Ctrl+R과 fillRange도 같은 규칙이에요.With cellFill on, drag the small square at the end of the selection to fill down or right. Numbers continue with the same step, text repeats, and undo is one step. Ctrl+D, Ctrl+R and fillRange use the same rules. #fill handle#autofill#drag#fill handle#autofill#drag 심화Advanced 채우기 규칙을 직접 정하기Define your own fill rule cellFill의 fill 콜백으로 채울 값을 직접 정해요. 요일 열은 월·화·수 순서를 이어 가고 근무 열은 되풀이해요. direction: "y"로 아래로만 채워요.The cellFill fill callback sets the values to fill. The weekday column continues Mon, Tue, Wed and the shift column repeats. direction: "y" fills downward only. #fill handle#autofill#custom#fill handle#autofill#custom 활용Intermediate 주 컬럼 필터와 내보내기Filter and export a week column 주 컬럼(kind: 'week')은 필터 칸에서 달력으로 고르거나 >=2026-W10 처럼 쓸 수 있고, 내보내기에는 YYYY-Www 글자로 나가요(xlsx도 글자 셀).A week column (kind: 'week') can be filtered by picking from the calendar or typing >=2026-W10, and exports as YYYY-Www text (also a text cell in xlsx). #week#filter#export#week#filter#export 활용Intermediate 키보드로 행 넣고 지우기Add and remove rows with the keyboard keyboardRows: true로 Insert는 새 행, Ctrl+Delete는 선택 행 삭제를 켜요. 새 행은 컬럼 기본값으로 채우고, 훅에는 source: 'keyboard'로 알려서 막거나 되물을 수 있어요.keyboardRows: true turns on Insert for a new row and Ctrl+Delete for removing the selected rows. The new row gets the column defaults, and hooks see source: 'keyboard' so you can veto or confirm. #edit#keyboardRows#addRows#edit#keyboardRows#addRows 입문Beginner 줄을 두 번 눌러 옆 폼에서 고치기Edit a row in a side form (double-click) rowEditPanel: true면 줄을 두 번 누를 때 옆에 폼이 열려요. 칸 종류에 맞는 편집기로 여러 칸을 고치고 저장하면 한 번에 반영되고, 되돌리기도 한 번이에요.With rowEditPanel: true a double-click on a row opens a form beside the grid. Edit several fields with the editor of each column kind; Save applies them at once and undo is a single step. #rowEditPanel#openRowPanel#rowPanelSaved#rowEditPanel#openRowPanel#rowPanelSaved 입문Beginner 폼에서 검증하고 저장 막기Validate in the form and block saving 저장하면 칸의 검증 규칙을 모두 확인해요. 하나라도 어긋나면 아무것도 저장되지 않고, 어긋난 칸마다 이유가 보이며 첫 칸에 포커스가 가요.Save checks every validation rule. If any field fails nothing is saved, each failing field shows why and focus moves to the first one. #rowEditPanel#validation#saveRowPanel#rowEditPanel#validation#saveRowPanel 입문Beginner 행을 고르면 폼 열기, 닫을 때 확인Open on select, ask before discarding open: 'select'면 행을 하나 고를 때 폼이 열려요. 고친 값이 있는데 다른 줄로 옮기거나 닫으면 beforeRowPanelClose 훅이 먼저 물어요.With open: 'select' the form opens when one row is selected. With unsaved values, switching rows or closing asks the beforeRowPanelClose hook first. #rowEditPanel#open select#beforeRowPanelClose#rowEditPanel#open select#beforeRowPanelClose 입문Beginner 코드로 폼 열기·저장·닫기Open, save and close the form from code open: 'api'면 두 번 눌러도 열리지 않고 openRowPanel로만 열어요. saveRowPanel, closeRowPanel({ discard }), getRowPanelState로 폼을 다뤄요.With open: 'api' double-clicks do nothing; the form opens only through openRowPanel. Drive it with saveRowPanel, closeRowPanel({ discard }) and getRowPanelState. #rowEditPanel#openRowPanel#closeRowPanel#rowEditPanel#openRowPanel#closeRowPanel 입문Beginner 겹쳐 뜨는 폼과 좁은 화면의 아래 시트Overlay form and the narrow-screen bottom sheet modal: true면 폼이 그리드를 밀지 않고 위에 겹쳐요. 컨테이너가 640px보다 좁으면 항상 아래 시트(대화상자)로 열려요.With modal: true the form floats over the grid instead of pushing it. When the container is narrower than 640px it always opens as a bottom sheet dialog. #rowEditPanel#modal#bottom sheet#rowEditPanel#modal#bottom sheet

실행 취소와 복구Undo and redo 9

Ctrl+Z, Ctrl+Y로 되돌리기Step back and forward with shortcuts

입문Beginner 바뀐 것 표시하고 되돌리기See what changed and take it back 저장하기 전까지 고친 값은 "변경"으로 쌓여요. 고친 칸에는 표시가 붙고, 추가·삭제한 줄도 구분돼요. 바뀐 내용은 원래 값과 지금 값을 나란히 한눈에 보고, 한 줄만 또는 전부 원래대로 돌릴 수 있어요.Until you save, edits pile up as changes. Changed cells are marked and added or removed rows are distinguished. See the change set as a code-style diff, and revert one row or everything. #changes#getChanges#rollbackChanges#changes#getChanges#rollbackChanges 입문Beginner 실행 취소·다시 실행Undo and redo 실수로 고친 값을 Ctrl+Z로 되돌리고 Ctrl+Y로 다시 실행해요. 버튼으로도 할 수 있고, 줄 단위로 고치면 한 줄이 한 단계예요.Take back a mistaken edit with Ctrl+Z and redo it with Ctrl+Y, or use buttons. With row editing, one row is one step. #undo#redo#canUndo#undo#redo#canUndo 활용Intermediate 되돌리기 개수 제한과 저장Undo limit and saving 되돌리기 기록은 최근 몇 번까지만 남길 수 있어요. 되돌린 값은 변경 추적에도 반영돼서, 전부 되돌리면 저장할 것이 없어져요.Keep only the latest few undo steps. Undone values also reach change tracking, so undoing everything leaves nothing to save. #undoLimit#clearHistory#undo#undoLimit#clearHistory#undo 활용Intermediate 편집 기록에서 골라 되돌리기Pick an entry from the edit history 고친 내용이 표 아래 목록에 번호 붙은 기록으로 쌓여요. 마지막 것이 아니어도 원하는 기록의 "되돌리기"를 눌러 그 편집만 원래 값으로 돌려요.Edits pile up as numbered entries in a list under the grid. Press "Undo" on any entry, not only the last, to restore just that edit. #편집 기록#되돌리기#목록 입문Beginner 행 삭제와 수정도 되돌리기Undo row removal and row updates removeRows와 updateRows로 바꾼 것도 셀 편집과 같은 되돌리기 기록에 쌓여요. 한 번 부른 것이 한 단계예요.Changes made with removeRows and updateRows go into the same undo history as cell edits. One call is one step. #undo#redo#removeRows#undo#redo#removeRows 활용Intermediate 저장 전에는 정렬·쪽 이동 막기Block sorting and paging before saving hooks.beforeSort, beforeFilter, beforePageChange가 false를 돌려주면 그 조작은 취소돼요. 이 예제는 저장하지 않은 고침(hasChanges)이 있는 동안 정렬·필터·쪽 이동을 막아 고친 줄이 사라지거나 흩어지지 않게 해요. 훅의 source로 화면 조작과 코드 호출을 구분해요.When hooks.beforeSort, beforeFilter or beforePageChange returns false, that action is cancelled. This example blocks sorting, filtering and page changes while there are unsaved edits (hasChanges) so edited rows do not scatter. The hook source tells a gesture from a code call. #hooks#beforeSort#beforePageChange#hooks#beforeSort#beforePageChange 활용Intermediate 행 숨기기는 되돌리기와 상관없어요Hiding rows is not part of undo hideRows는 보기만 바꾸는 일이라 변경 추적(getChanges)에도 되돌리기(undo) 기록에도 남지 않아요. 숨긴 행을 다시 보이려면 showRows를 써요. 값 고치기는 변경과 되돌리기에 남아서 대비돼요.hideRows only changes the view, so it is not in change tracking (getChanges) or the undo history. Use showRows to bring rows back. Editing a value is tracked and undoable, which shows the contrast. #hideRows#showRows#undo#hideRows#showRows#undo 입문Beginner 저장 시점 만들고 돌아가기Create and restore save points createSavePoint()는 지금 행의 깊은 복사본을 메모리에 보관하고, restoreSavePoint(id)는 그 모습으로 돌아가요. 최대 20개이고 되살리면 변경 추적과 되돌리기 기록이 비워져요.createSavePoint() keeps a deep copy of the current rows in memory and restoreSavePoint(id) goes back to it. At most 20 are kept, and a restore clears change tracking and the undo history. #createSavePoint#restoreSavePoint#listSavePoints#createSavePoint#restoreSavePoint#listSavePoints 활용Intermediate 해 보고 마음에 안 들면 되돌리기Try something and roll back 해 보기를 시작할 때 저장 시점을 만들고, 마음에 안 들면 restoreSavePoint(id, { keepView: true })로 되돌려요. keepView: true는 정렬·선택·쪽을 그대로 둬요. 마음에 들면 deleteSavePoint로 시점만 지워요.Create a save point when a trial starts and go back with restoreSavePoint(id, { keepView: true }) if you do not like it. keepView: true keeps sort, selection and page. If you like it, deleteSavePoint just drops the point. #createSavePoint#restoreSavePoint#keepView#createSavePoint#restoreSavePoint#keepView

내보내기Export 33

Excel, PDF 등 파일로 저장Save as Excel, PDF and more

입문Beginner CSV로 내보내기: 전체·보이는 줄·고른 줄Export CSV: all, visible or selected rows 지역 필터를 걸고 몇 줄을 체크한 뒤, 전체·보이는 줄·고른 줄을 각각 CSV로 내려받아요. 세 파일의 줄 수가 달라요.Filter by region, tick a few rows, then download all, visible or selected rows. The three files have different row counts. #csv#downloadCsv#rowScope#csv#downloadCsv#rowScope 입문Beginner 내보낼 컬럼·머리글·구분 글자 정하기Choose columns, header row and delimiter 숨긴 컬럼을 넣을지, 머리글 줄을 쓸지, 쉼표·탭·세미콜론 중 무엇으로 나눌지 정해서 CSV 내용을 미리 보고 내려받아요.Decide whether hidden columns and the header row are included and which delimiter separates fields, preview the text, then download. #csv#includeHidden#delimiter#csv#includeHidden#delimiter 활용Intermediate 한글 Excel에서 안 깨지는 CSV 만들기CSV that opens cleanly in Korean Excel 엑셀에서 한글이 깨지지 않게 하는 설정, 쉼표 찍힌 표시값, 수식으로 읽히는 글자 막기를 바꿔 가며 CSV 내용이 어떻게 달라지는지 미리 봐요.Toggle BOM, displayed values and formula protection and see how the CSV text changes. #csv#bom#sanitizeFormulas#csv#bom#sanitizeFormulas 심화Advanced 5만 줄을 나눠서 내보내기: 진행률과 취소Export 50,000 rows in chunks with progress and cancel 큰 데이터를 5,000줄씩 나눠 만들면서 진행률을 보여 주고, 도중에 취소해요. 그동안 화면은 멈추지 않아요.Build a large CSV in 5,000-row chunks with progress and a cancel button while the page stays responsive. #csv#exportCsvChunks#AbortSignal#csv#exportCsvChunks#AbortSignal 입문Beginner Excel(.xlsx)로 내려받기: 숫자·날짜 유지Download Excel (.xlsx) keeping numbers and dates 숫자와 날짜가 글자가 아니라 진짜 숫자·날짜로 들어가는 엑셀 파일을 만들어요. 단가를 숫자로 받을지 화면 모양 그대로(글자) 받을지 고를 수 있어요.Make an Excel file where numbers and dates stay real numbers and dates. Choose whether the price column is exported as numbers or exactly as displayed (text). #xlsx#downloadXlsx#date#xlsx#downloadXlsx#date 활용Intermediate 시트 이름·머리글 고정·숨긴 컬럼 정하기Sheet name, frozen header and hidden columns xlsx 파일의 시트 이름과 머리글 고정, 화면에서 숨긴 컬럼 포함 여부를 정해서 내려받아요.Set the sheet name, frozen header and whether hidden columns are included in the downloaded xlsx. #xlsx#sheetName#freezeHeader#xlsx#sheetName#freezeHeader 활용Intermediate 셀 색·굵게·병합·그림을 담아 내보내기Export with colors, bold, merged cells and pictures 머리글 배경색, 수량이 많은 칸의 빨간 굵은 글씨, 같은 지역을 합친 칸, 재고 표시 그림을 xlsx에 담아요.Put a header background, red bold large quantities and merged region cells into the xlsx. #xlsx#cellStyle#headerStyle#xlsx#cellStyle#headerStyle 활용Intermediate 컬럼마다 내보내기 방식 정하기Set the export behavior per column 컬럼의 export로 엑셀 칸 종류와 내보낼 값을 정해요. 코드는 글자 칸(앞자리 0 유지), 금액은 숫자 칸과 서식(format.number에서 만들어요), 날짜는 글자, 상태는 export.value가 만든 글자로 나가요.A column's export sets the Excel cell type and the exported value. The code goes out as a text cell (leading zeros kept), the amount as a number cell with a number format (built from format.number), the date as text, and the status as the text export.value makes. #export#xlsx#numberFormat#export#xlsx#numberFormat 활용Intermediate 트리를 들여쓰기해서 내보내기Export a tree with indentation 펼친 트리를 깊이만큼 들여쓴 줄로 CSV·xlsx에 담아요. 접힌 가지는 파일에서 빠져요.Export the expanded tree as indented lines in CSV or xlsx. Collapsed branches are left out. #hierarchy#tree#csv#hierarchy#tree#csv 입문Beginner 그리드 전체의 내보내기 기본값Grid-wide export defaults exportDefaults에 CSV·xlsx·PDF별 기본 옵션을 적어 두면 호출마다 반복하지 않아도 돼요. 호출에서 준 옵션이 기본값을 덮어요(옵션 키마다).Put default options per format (CSV, xlsx, PDF) in exportDefaults and you do not repeat them on every call. An option passed on the call overrides the default, key by key. #export#exportDefaults#csv#export#exportDefaults#csv 입문Beginner PDF로 내려받기: 용지·글자 크기·고른 줄Download PDF: paper, font size and selected rows 용지, 방향, 글자 크기와 체크한 줄만 내보내기를 정해서 한글 PDF를 만들어요.Choose paper, orientation, font size and selected-only export to make a Korean PDF. #pdf#downloadPdf#pageSize#pdf#downloadPdf#pageSize 활용Intermediate 한글 PDF: 폰트 넣기Korean PDF: embed a font 한글 폰트를 넣은 PDF와 폰트 없이 만든 PDF를 비교하고, 빠진 글자는 경고로 알려 줘요.Compare a PDF made with a Korean font and without; missing glyphs are reported as warnings. #pdf#font#koreanFont#pdf#font#koreanFont 심화Advanced 그룹·합계를 PDF·xlsx로, 많은 줄은 취소와 상한Groups and totals in PDF and xlsx; cancel and limit for large exports 지역별 그룹과 합계가 든 PDF·xlsx를 만들고, 2만 줄 PDF를 만들다 취소하거나 줄 수 상한으로 막아요.Build PDF and xlsx with region groups and totals, cancel a 20,000-row PDF build or stop it with a row limit. #pdf#maxRows#AbortSignal#pdf#maxRows#AbortSignal 활용Intermediate 그리드에 내보내기 기능 붙이기Attach export to the grid 그리드에 내보내기 기능을 붙이면 CSV·엑셀·PDF 파일을 만들 수 있어요. 정렬한 결과가 그대로 파일에 담겨요.One line of code adds export to the grid so you can make CSV, Excel and PDF files. A sorted order carries into the file. #withExport#exportCsv#exportXlsx#withExport#exportCsv#exportXlsx 활용Intermediate 인쇄용 보기 만들기Make a print view 보이는 줄로 인쇄용 표를 만들어 미리 보고 인쇄해요. 인쇄할 때는 이 표만 나와요.Build a print table from the visible rows, preview it and print; only that table is printed. #print#CSS#getVisibleRows#print#CSS#getVisibleRows 활용Intermediate 붙여넣기 전에 미리 보고 오류 줄 알려 주기Preview pasted data and report bad lines 엑셀에서 복사한 내용을 바로 넣지 않고 그리드에 미리 보여 주며, 문제가 있는 줄을 줄 번호와 함께 알려 줘요.Show pasted spreadsheet data in the grid first and report problem lines with their line numbers. #paste#validation#preview#paste#validation#preview 활용Intermediate 엑셀 파일에 시트 여러 개 넣기Several sheets in one xlsx file 화면의 주문 표와 지역별 합계 표를 한 엑셀 파일의 두 시트로 내려받아요.Download the orders grid and a per-region totals table as two sheets of one xlsx file. #xlsx#sheets#xlsxSheet#xlsx#sheets#xlsxSheet 활용Intermediate 엑셀 숫자 서식(천 단위·통화·퍼센트) 입히기Excel number formats: thousands, currency, percent 단가·마진율·재고를 글자가 아닌 숫자 값으로 내려받고, 엑셀 서식 코드로 천 단위 쉼표·원·퍼센트를 보여 줘요.Download price, margin and stock as real numbers and let Excel format codes show thousands separators, currency and percent. #xlsx#numberFormats#formatValue#xlsx#numberFormats#formatValue 활용Intermediate 한글과 중국어 간체가 섞인 PDFA PDF with Korean and Simplified Chinese 한글 폰트 뒤에 간체 폰트를 이어서 주면 한 표에 한글과 중국어 간체가 같이 있는 PDF가 만들어져요. 한글 폰트만 쓰면 간체 글자가 ?로 바뀌는 것도 비교해 볼 수 있어요.Chain the Simplified Chinese font after the Korean font and one table can hold Korean and Simplified Chinese in the same PDF. You can also compare with the Korean font alone, where Simplified characters become ?. #pdf#font#simplifiedChineseFont#pdf#font#simplifiedChineseFont 입문Beginner 보이는 행을 JSON으로 내보내기Export the visible rows as JSON withExport(api)가 붙이는 exportJson()은 보이는 행(정렬·필터 반영)을 컬럼 id를 열쇠로 하는 객체 배열 JSON으로 만들어요. 기본은 저장된 값 그대로이고 text: 'shown'이면 화면 글자예요. scope로 전체·보이는 행·선택한 행을, columns로 컬럼과 순서를 고르고 pretty로 들여써요. downloadJson()은 파일로 저장해요.exportJson(), added by withExport(api), turns the visible rows (sort and filter applied) into a JSON array of objects keyed by column id. By default it writes the stored values; text: 'shown' writes the displayed text. scope picks all, visible or selected rows, columns picks the columns and their order, and pretty indents. downloadJson() saves a file. #export#json#exportJson#export#json#exportJson 입문Beginner 보이는 행을 XML로 내보내기Export the visible rows as XML exportXml()은 UTF-8 선언 아래 뿌리 요소와 행 요소를 만들고 컬럼 하나를 요소 하나로 써요. 요소 이름은 컬럼 id이고 쓸 수 없는 이름이면 <cell id="…">예요. 배열은 <item>, 없는 값은 nil="true"이며 글자는 모두 이스케이프하고 쓸 수 없는 제어 문자는 빼요. root·rowTag·pretty로 모양을 바꿔요.exportXml() writes a root element and row elements under a UTF-8 declaration, one element per column. The element name is the column id, or <cell id="…"> when it cannot be a name. Arrays become <item>, missing values nil="true", all text is escaped and invalid control characters are dropped. root, rowTag and pretty change the shape. #export#xml#exportXml#export#xml#exportXml 활용Intermediate 머리글 그룹을 엑셀에 병합 셀로 내보내기Export header groups to Excel as merged cells exportXlsx의 headerGroups: true는 화면의 머리글 그룹을 여러 줄 머리글로 내보내요. 그룹 제목은 가로 병합, 컬럼 머리글은 세로 병합이고 머리글 블록 전체가 고정돼요.headerGroups: true in exportXlsx writes the on-screen header groups as a multi-row header. Group titles merge horizontally, column headers merge vertically, and the whole block is frozen. #xlsx#headerGroups#merge#xlsx#headerGroups#merge 활용Intermediate 병합 그룹 표시를 엑셀 세로 병합으로 내보내기Export merged group display as vertical merges grouping.merged로 보이는 그룹 컬럼을 mergedGroups: true로 내려받으면 그룹의 줄들에 걸친 세로 병합 셀로 나가요. 값은 첫 칸에 있고 그룹 머리 줄은 없어요.With mergedGroups: true, the group columns shown by grouping.merged are exported as vertically merged cells over the group's rows. The value is in the first cell and there are no group header lines. #xlsx#mergedGroups#grouping#xlsx#mergedGroups#grouping 활용Intermediate 엑셀 파일을 읽어 그리드에 넣기Read an Excel file into the grid api.importXlsx로 xlsx 파일을 읽어 행을 바꾸거나 뒤에 붙여요. 날짜·숫자·불리언이 컬럼 종류에 맞게 들어와요.Read an xlsx file with api.importXlsx and replace or append the rows. Dates, numbers and booleans arrive in the column kinds. #xlsx#import#importXlsx#xlsx#import#importXlsx 활용Intermediate 엑셀 머리글을 컬럼에 이어 읽기Map Excel headers to grid columns 파일의 머리글이 그리드 컬럼과 달라도 columns 옵션으로 이어 읽고, 시트와 범위(range)를 골라요.Link file headers that differ from the grid columns with the columns option, and choose the sheet and the range. #xlsx#import#importXlsx#xlsx#import#importXlsx 활용Intermediate 파일을 끌어다 놓아 가져오기Import by dropping a file fileDrop 옵션을 켜면 csv·xlsx·json·xml 파일을 그리드 위에 놓아 가져와요. 키보드는 openFileDialog를 써요.Turn on the fileDrop option and drop a csv, xlsx, json or xml file onto the grid. Keyboard users call openFileDialog. #fileDrop#drop#drag#fileDrop#drop#drag 활용Intermediate 끌어다 놓은 파일을 뒤에 붙이고 거르기Append dropped files and filter them mode: 'append', accept, maxSize, columns, beforeFileImport로 받을 파일과 붙이는 방법을 정해요.Use mode: 'append', accept, maxSize, columns and beforeFileImport to decide which files are taken and how they are added. #fileDrop#append#accept#fileDrop#append#accept 활용Intermediate 수식으로 내려받기Download with Excel formulas 금액 칸과 합계 줄을 값 대신 수식으로 내려받아서 엑셀에서 고치면 다시 계산돼요.Download the amount cells and the total row as formulas so Excel recalculates when you edit. #xlsx#formulas#xlsxFormula#xlsx#formulas#xlsxFormula 활용Intermediate 셀 메모를 시트 메모로 내려받기Download cell notes as Excel notes 화면의 셀 메모를 엑셀 메모(주석)로 담아서 내려받아요.Download the cell notes on screen as Excel notes (comments). #xlsx#notes#cellNotes#xlsx#notes#cellNotes 심화Advanced 시트 보호하기Protect the Excel sheet 잠글 컬럼과 암호를 정해서 실수로 고치는 것을 막는 시트로 내려받아요.Choose the locked columns and a password to download a sheet that guards against accidental edits. #xlsx#protect#sheetProtection#xlsx#protect#sheetProtection 활용Intermediate 표 위에 제목 줄 넣기Add a title above the table 표 밖 칸에 제목과 작성일을 쓰고 표를 몇 줄 아래에서 시작해 내려받아요.Write a title and date outside the table and start the table a few rows lower. #xlsx#extraCells#startRow#xlsx#extraCells#startRow 활용Intermediate 그리드를 PNG 그림으로 저장하기Save the grid as a PNG image 화면 또는 전체 행을 배율과 배경색을 정해서 PNG로 만들고 내려받아요.Create and download a PNG of the visible area or all rows, with a chosen scale and background. #png#exportPng#downloadPng#png#exportPng#downloadPng 활용Intermediate 쪽 머리말·꼬리말을 넣어 인쇄하기Print with page headers and footers 용지 방향과 쪽당 행 수를 정하고 제목·머리말·꼬리말(쪽 번호)을 넣어 인쇄해요.Choose the paper orientation and rows per page, then print with a title, header and footer (page numbers). #print#api.print#orientation#print#api.print#orientation

이벤트와 제어Events and control 13

이벤트 처리와 그리드 제어Handle events and drive the grid

활용Intermediate 선택·포커스·클릭 이벤트 한눈에 보기Selection, focus and click events at a glance 한 번의 클릭도 선택 변경, 포커스 이동, 행 클릭, 칸 클릭 이벤트로 나뉘어 와요. 어떤 동작에 어떤 이벤트가 오는지 기록 창으로 직접 확인하고, 필요한 것만 골라 받을 수 있어요.One click raises several events: selection changed, focus moved, row clicked, cell clicked. See which action raises which in the log and subscribe to only what you need. #events#selectionChanged#focusChanged#events#selectionChanged#focusChanged 입문Beginner 값이 바뀐 칸 번쩍이기Flash the cells whose value changed 옵션 changeFlash를 켜면 updateRows나 transact로 값이 바뀐 칸이 잠깐 번쩍여요. 컬럼의 flashOnChange로 칸 단위로 켜고 끌 수 있고, 사용자가 편집기에서 고친 칸은 번쩍이지 않아요.With the changeFlash option, cells whose value was changed by updateRows or transact flash briefly. flashOnChange turns it on or off per column, and cells the user edits in the editor do not flash. #changeFlash#flashOnChange#updateRows#changeFlash#flashOnChange#updateRows 활용Intermediate 빠른 변경을 모아서 한 번에 적용하기Batch fast changes into one update transactBatched로 준 변경은 transactionWaitMs 동안 모였다가 순서대로 하나로 합쳐져 한 번에 적용돼요. 적용되면 rowsChanged와 transactionsFlushed가 한 번씩 나가고 되돌리기 기록에는 남지 않아요.Changes given to transactBatched are collected for transactionWaitMs, merged in order and applied together. One rowsChanged and one transactionsFlushed are emitted, and nothing is added to the undo history. #transactBatched#flushTransactions#transactionsFlushed#transactBatched#flushTransactions#transactionsFlushed 입문Beginner 코드로 칸을 번쩍여 주의 끌기Draw attention by flashing cells from code api.flashCells(cells, { duration, fade })는 값이 바뀌지 않아도 지정한 칸을 번쩍여요. 보이는 시간은 100~5000ms, 사라지는 시간은 0~2000ms예요.api.flashCells(cells, { duration, fade }) flashes the given cells even when no value changed. The visible time is 100-5000 ms and the fade 0-2000 ms. #flashCells#flash#번쩍임#flashCells#flash 활용Intermediate 컬럼 메뉴 항목 바꾸기Customize the column menu items columnMenu에 items 콜백을 주면 컬럼 메뉴의 기본 항목을 빼고 내 항목을 더할 수 있어요. 열고 닫힘은 columnMenuOpened·columnMenuClosed 이벤트로 알아요.A columnMenu items callback removes default items and adds your own. Opening and closing are reported by columnMenuOpened and columnMenuClosed. #columnMenu#items#columnMenuOpened#columnMenu#items#columnMenuOpened 활용Intermediate 우클릭 이벤트 받고 가로채기Receive and intercept right clicks contextMenuRequested가 우클릭한 자리(zone)를 메뉴가 열리기 전에 알려요. hooks.beforeContextMenu가 false면 내장 메뉴를 막고, 행 번호 칸 클릭에는 zone이 붙어요.contextMenuRequested reports the zone of a right click before the menu opens. hooks.beforeContextMenu returning false blocks the built-in menu, and clicks on row numbers carry a zone. #contextMenuRequested#beforeContextMenu#zone#contextMenuRequested#beforeContextMenu#zone 활용Intermediate 터치로 길게 눌러 메뉴 열기Open the menu with a long press 터치 기기에서 칸을 400ms 길게 누르면 cellLongPressed가 나가고 셀 메뉴가 그 자리에서 열려요. 손가락이 움직이거나 스크롤하면 취소돼요.On a touch device holding a cell for 400 ms fires cellLongPressed and opens the cell menu at that spot. Moving the finger or scrolling cancels it. #cellLongPressed#touch#cellMenuOpened#cellLongPressed#touch#cellMenuOpened 활용Intermediate 보기 이벤트 한눈에 보기See the view events at a glance firstRendered, gridResized, viewportChanged, scrollEnded, modelChanged, rowSelected를 한 기록 창에 모아 봐요. 구독한 이벤트만 관찰자와 타이머를 만들어요.Collect firstRendered, gridResized, viewportChanged, scrollEnded, modelChanged and rowSelected in one log. Only subscribed events create observers and timers. #firstRendered#gridResized#viewportChanged#firstRendered#gridResized#viewportChanged 입문Beginner 보이는 행 범위 따라가기Follow the visible row range viewportChanged는 화면에 보이는 첫 행과 마지막 행의 인덱스를 알려요. 범위가 바뀔 때만, 프레임당 한 번 나가서 스크롤 중 상태 표시줄을 갱신하기에 알맞아요.viewportChanged reports the index of the first and last visible row. It fires only when the range changes and at most once per frame, which suits a status line updated while scrolling. #viewportChanged#scroll#보이는 행#viewportChanged#scroll 입문Beginner 스크롤이 멈추면 알려 받기Get told when scrolling stops scrollEnded는 마지막 스크롤 뒤 events.scrollEndMs(기본 150ms) 지나서 한 번 나가요. 스크롤 위치 저장이나 지연 로딩처럼 멈춘 뒤에 할 일에 쓰고, 스크롤마다 나가는 scrolled와 달라요.scrollEnded fires once, events.scrollEndMs (default 150 ms) after the last scroll. Use it for work after scrolling stops, such as saving the position or lazy loading; scrolled, in contrast, fires on every scroll. #scrollEnded#scrolled#events.scrollEndMs#scrollEnded#scrolled#events.scrollEndMs 입문Beginner 빈 본문 클릭 이벤트Empty body click events 행 아래·옆의 빈 영역을 누르면 bodyClicked·bodyDoubleClicked가 그리드 안쪽 좌표와 함께 와요. 행·머리글·요약·페이저·팝업은 보내지 않아요.Clicking the empty area below or beside the rows sends bodyClicked and bodyDoubleClicked with grid-local coordinates. Rows, headers, summary rows, the pager and popups do not send them. #events#bodyClicked#bodyDoubleClicked#events#bodyClicked#bodyDoubleClicked 활용Intermediate 정렬·필터·묶기 전에 막기Block sort, filter and grouping beforeSort, beforeFilter, beforeGroup은 모델이 바뀌기 직전에 불려요. false를 돌려주면 취소되고 이벤트도 나가지 않아요. 훅이 받는 source로 화면 조작('user')과 코드 호출('api')을 구분하고, model이나 columns로 바뀔 값을 미리 볼 수 있어요.beforeSort, beforeFilter and beforeGroup run just before the model changes. Returning false cancels it and no event is sent. The source tells a gesture ('user') from a code call ('api'), and model or columns shows the value about to be applied. #hooks#beforeSort#beforeFilter#hooks#beforeSort#beforeFilter 활용Intermediate 입력할 때마다 오는 editInput 이벤트The editInput event on every keystroke editInput은 편집기의 입력칸 글자가 바뀔 때마다 rowKey·columnId·value와 함께 와요. value는 해석·검증 전 글자라서 글자 수 표시나 실시간 검색에 알맞아요.editInput arrives whenever the editor's text changes, with rowKey, columnId and value. The value is the text before parsing and validation, which suits a character counter or live search. #events#editInput#edit#events#editInput#edit

프레임워크 연동Framework integration 61

React, Vue, Angular와 함께 쓰기Use with React, Vue and Angular

활용Intermediate 이벤트 듣기와 멈추기Subscribe to and unsubscribe from events 클릭, 선택, 정렬, 편집이 일어날 때마다 알림을 받아 기록해요. 듣기를 시작하면 멈추는 방법도 함께 얻어서, 필요 없어지면 멈출 수 있어요. '첫 번째만 듣기'도 있고, 화면이 사라질 때는 꼭 멈춰야 해요.You get a notice each time a click, selection, sort or edit happens and log it. Starting to listen also gives you the way to stop. Listening to only the first one is possible too, and everything must be stopped when the screen goes away. #events#on#once#events#on#once 활용Intermediate 서버에서 불러오기: 로딩·더 불러오기·실패Load from a server: loading, load more, failure 요청하는 동안에는 '불러오는 중' 표시를 보여 주고, 답이 오면 행을 채워 넣어요. 한 번에 한 묶음씩 이어 붙이는 방법, 실패했을 때 기록으로 알리는 방법, 답이 오기 전에 화면이 사라져도 안전한 방법을 보여 줘요.While a request runs it shows a loading text, then fills the rows when the answer arrives. It loads one chunk at a time, reports a failure and stays safe if the screen disappears before the answer. #async#loading#addRows#async#loading#addRows 심화Advanced 서버에서 정렬·필터하기 (오래된 응답 버리기)Sort and filter on the server (drop stale answers) 정렬이나 필터가 바뀔 때마다 서버에 다시 물어보는 구조예요. 응답이 늦게 오는 순서가 뒤바뀌어도 화면이 옛 결과로 돌아가지 않도록, 요청마다 번호를 붙여 가장 최근 번호의 응답만 반영해요.Every sort or filter change asks the server again. To keep a slow old answer from replacing a newer one, each request gets a number and only the latest is applied. #server#async#sort#server#async#sort 심화Advanced 서버 응답을 표 행으로 바꾸기Map a server response to grid rows 서버마다 같은 데이터를 다른 모양(중첩된 항목, 글자로 온 숫자, 평평한 목록, 페이지에 심어 둔 JSON)으로 보내요. 하나의 변환 코드가 모두 같은 행 목록으로 바꾸고, 값이 없거나 망가진 항목은 오류 대신 빈 값이나 건너뜀으로 처리해요.Servers send the same data in different shapes: nested items, numbers as text, flat lists, JSON embedded in the page. One conversion step maps them all to the same rows, and missing or broken items become empty values or are skipped instead of failing. #response#mapping#json#response#mapping#json 활용Intermediate 서버가 그린 HTML 표를 그리드로 바꾸기Turn a server-rendered HTML table into a grid 서버가 이미 그려 준 평범한 HTML 표를 읽어서 컬럼과 행으로 바꾸면, 정렬·필터 같은 기능을 그대로 쓸 수 있어요. 머리글 칸에 적어 둔 이름표로 항목 이름과 숫자 여부를 알려 줘요.Read a plain server-rendered HTML table into columns and rows and sorting and filtering work right away. Labels written on the header cells tell the field names and which are numbers. #html#table#DOMParser#html#table#DOMParser 심화Advanced 값이 계속 바뀌는 표: 바뀐 줄 강조A table whose values keep changing: highlight changed rows 서버에서 새 값이 계속 들어오는 상황을 흉내 내요. 바뀐 줄은 주황빛으로 잠깐 칠해졌다가 서서히 사라져요. 서버가 보낸 값은 직접 고친 값(칸 모서리 표시)과 달리 '고친 곳'으로 쌓이지 않아요.Simulates new values arriving from a server. Changed rows flash orange and fade out. Values pushed by the server are not counted as your own edits (the corner mark). #live#updateRows#timer#live#updateRows#timer 활용Intermediate 행을 더한 뒤 바로 보여 주기와 페이지 단축키Reveal a new row and page-level shortcuts 행을 더한 뒤에는 그 행을 선택하고 화면으로 스크롤해 눈이 바로 찾게 해요. 정렬이 켜져 있으면 정렬된 자리로 들어가는 점도 보여 줘요. Alt+N으로 더하고 Delete로 지우는 페이지 단축키는 화면을 떠날 때 꼭 걷어 내야 해요.After adding a row, select it and scroll to it so the eye finds it; with a sort on it lands in sorted position. Page shortcuts Alt+N to add and Delete to remove must be taken away when the screen goes. #addRows#scrollToRow#shortcut#addRows#scrollToRow#shortcut 활용Intermediate 표와 바깥 검색 상자·입력 폼 연결하기Link the grid to a search box and form fields 그리드 밖의 검색 상자와 선택 목록을 표와 이어요. 표에서 행을 고르면 어느 직원을 다루는지 바깥에 알리고(그리드 → 폼), 검색 상자는 필터로, 선택 목록은 고른 행의 값으로 되돌려 넣어요(폼 → 그리드).Connect a search box and selects outside the grid. Selecting a row tells the outside which employee is in play (grid to form); the search box becomes a filter and the selects write back into the chosen row (form to grid). #external#form#search#external#form#search 심화Advanced 필터를 주소 글자로 바꾸고 되살리기 (주소창 흉내)Turn a filter into address text and back (address bar simulated) 필터를 걸 때마다 조건을 '?dept=개발팀&min=500' 같은 주소 글자로 바꿔 보여 줘요. 그 글자를 읽어 같은 필터를 다시 걸 수도 있어요. 이 미리보기 안에서는 실제 주소창을 바꿀 수 없어서 아래 줄이 주소창을 대신해요.Each filter change is turned into address text such as ?dept=...&min=500, and the same filter can be rebuilt from that text. The preview cannot change the real address bar, so the line below stands in for it. #filter#url#query#filter#url#query 활용Intermediate 화면 상태를 JSON 하나로 저장하고 복원하기Save and restore the view state as one JSON getViewState()로 정렬·필터·페이지·선택·컬럼 상태를 JSON 하나로 읽고, setViewState()로 한 번에 되돌려요. 틀린 부분이 있으면 아무것도 바꾸지 않고 오류를 던져요. 바뀔 때마다 stateChanged가 나가요.getViewState() reads sort, filter, page, selection and column state as one JSON and setViewState() restores it at once. A wrong part throws and changes nothing. stateChanged fires on each change. #getViewState#setViewState#initialState#getViewState#setViewState#initialState 활용Intermediate 저장하지 않았으면 떠나기 전에 경고하기Warn before leaving with unsaved changes 저장하지 않은 수정이 있을 때만, 탭을 닫거나 새로고침하려 하면 브라우저가 한 번 더 물어봐요. 수정이 없으면 그냥 떠나요. 화면이 사라질 때는 이 경고도 함께 걷어 내야 해요.Only when there are unsaved edits does the browser ask once more before the tab is closed or reloaded. With no edits you leave silently. The warning must be removed when the screen goes away. #beforeunload#unsaved#hasChanges#beforeunload#unsaved#hasChanges 활용Intermediate 편집 상태를 코드에서 읽기Read the edit state from code isEditing, getEditing, getEditValues, getHistoryInfo로 지금 어느 칸을 편집 중인지와 되돌리기 개수를 읽어요. 행 편집 모드에서는 columnId가 null이에요.isEditing, getEditing, getEditValues and getHistoryInfo tell which cell is being edited and how many undo steps exist. In row edit mode columnId is null. #isEditing#getEditing#getEditValues#isEditing#getEditing#getEditValues 입문Beginner 라이선스 상태 확인하기 (평가 모드 표시)Check the license status (evaluation mode shown) 라이선스 키를 넣지 않아도 그리드는 평가 모드로 동작해요. 키가 확인되면 상태, 에디션, 이유를 알려 줘서 관리자 화면 같은 곳에서 직접 안내를 보여 줄 수 있어요. 이 갤러리의 번들은 개발자용이라 '유효, 개발용'으로 알려 와요.The grid runs in evaluation mode even without a license key. Once the key is checked it announces status, edition and reason, so you can show your own notice. This gallery's bundle is a developer build, so it reports valid and developer. #license#licenseStatusChanged#evaluation#license#licenseStatusChanged#evaluation 활용Intermediate 표의 선택·정렬을 화면 상태와 맞추기Keep the grid's selection and sort in step with screen state 표가 고른 행과 정렬을 알려 주면 화면이 그 값을 자기 상태로 들고 있고, 화면이 상태를 바꾸면 표도 따라 바뀌어요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.The grid reports the chosen rows and the sort, the screen keeps them as its own state, and when the screen changes its state the grid follows. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 활용Intermediate 그리드를 JSON으로 설명하기Describe the grid as JSON describeGrid()는 행 수·쓰는 기능 묶음·컬럼 목록·주요 옵션을 행 데이터와 콜백 없이 돌려줘요. hasFeature()로 묶음이 있는지도 물어요.describeGrid() returns the row count, feature bundles, columns and key options without row data or callbacks. hasFeature() asks whether a bundle is present. #describeGrid#hasFeature#introspection#describeGrid#hasFeature#introspection 활용Intermediate 서버에서 받아 오는 동안 로딩과 실패 보여 주기Show loading and failure while fetching from a server 서버에서 받은 행, 불러오는 중인지, 실패했는지는 화면이 상태로 들고 있고, 표에는 그 값을 옵션으로 넘겨요. 상태가 바뀌면 표가 알아서 '불러오는 중' 표시와 행을 바꿔요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.The screen keeps the fetched rows, the loading flag and the failure as state and passes them to the grid as options, so the grid switches the loading text and the rows by itself. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 활용Intermediate 표에서 고른 행을 폼에서 고쳐 적용하기Edit the selected row in a form and apply it 표에서 행을 하나 고르면 그 값이 폼에 채워지고, 폼에서 고친 값은 '적용'을 눌러야 표의 그 행에 들어가요. 적용 전의 값(초안)은 화면이 따로 들고 있어서 표는 그대로예요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.Selecting a row fills a form with its values, and edits only reach that row when you press Apply. The draft is kept by the screen, so the grid does not change before then. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 심화Advanced 셀 안에 컴포넌트 그리기: 상태 뱃지와 버튼Draw components inside cells: a status badge and a button 프레임워크의 컴포넌트를 셀에 그릴 수 있어요. 상태 칸에는 뱃지를, 마지막 칸에는 버튼을 넣고, 버튼을 누르면 화면에 알려 줘요. React, Vue, Angular 탭에는 각 프레임워크의 컴포넌트로 쓴 같은 예제가 들어 있고, 위 화면은 같은 모양을 JavaScript로 보여 줘요.A framework component can be drawn inside a cell. The status column holds a badge, the last column a button that reports its click to the screen. The React, Vue and Angular tabs hold the same example as each framework's components; the preview shows the same look in JavaScript. #react#vue#angular#react#vue#angular 심화Advanced 셀을 고칠 때 내가 만든 컴포넌트 쓰기Use your own component as the cell editor 셀을 두 번 누르면 뜨는 입력창을 프레임워크의 컴포넌트로 바꿀 수 있어요. 여기서는 상태 칸에 선택 목록 컴포넌트를 붙이고, 고르는 즉시 편집을 끝내요. Enter·Esc·Tab은 표가 처리해서 컴포넌트는 값만 알려 주면 돼요. 위 화면은 같은 모양을 내장 선택 목록으로 보여 줘요.The input that opens on double-click can be replaced by a framework component. Here the status column gets a select component that ends the edit as soon as you pick. The grid handles Enter, Esc and Tab, so the component only reports the value. The preview shows the same look with the built-in select. #react#vue#angular#react#vue#angular 심화Advanced 고친 행 수와 저장 버튼 한 줄로 보여 주기A save bar with pending count and a save button 표에서 고친 행이 몇 개인지, 저장하는 중인지를 한 줄로 보여 주고 저장·되돌리기 버튼을 붙여요. 고친 내용 추적과 저장은 표가 하고, 프레임워크 쪽 도우미는 그 값을 화면 상태로 모아 주기만 해요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.A bar shows how many rows were edited and whether a save is running, with Save and Discard buttons. The grid does the tracking and saving; the framework helper only gathers those values into screen state. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 심화Advanced 정렬·필터를 주소 글자로 남기고 되살리기Keep sort and filter in the address and restore them 정렬과 부서 조건이 바뀔 때마다 '?sort=salary.desc&dept=영업팀' 같은 주소 글자로 적고, 페이지를 열 때 그 글자를 읽어 같은 화면을 되살려요. 라우터를 따로 설치하지 않고 브라우저 기본 기능만 써요. 이 미리보기 안에서는 실제 주소창을 바꿀 수 없어서 표 위 줄이 주소창을 대신해요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.Each time the sort or department filter changes it is written as address text such as ?sort=salary.desc&dept=..., and on load that text is read back to restore the same screen. No router is installed; only built-in browser features are used. The preview cannot change the real address bar, so the line above the table stands in for it. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 심화Advanced 10만 행도 가볍게 쓰는 요령Keeping 100,000 rows light 표에 10만 행을 넣어도 화면에는 보이는 줄만 그려져서 스크롤과 정렬이 가벼워요. 여기에 프레임워크 쪽에서 지킬 요령을 더했어요. React는 행을 한 번만 만들고 스크롤 이벤트를 받지 않기, Vue는 감시를 가볍게 하는 상자에 담기, Angular는 받을 이벤트를 좁히기예요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.Even with 100,000 rows only the visible lines are drawn, so scrolling and sorting stay light. The framework tabs add what to watch: in React build the rows once and skip the scroll event, in Vue keep them in a light-weight reactive box, in Angular narrow the events you receive. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 활용Intermediate 밝은·어두운 화면과 칸 여백을 앱 상태로 바꾸기Switch light/dark and cell padding from app state 칸 여백은 표의 옵션 값으로, 밝은·어두운 화면은 표를 감싼 요소의 data-mxg-theme 속성으로 바꿔요. 둘 다 앱의 상태 값 하나에 묶어 두면 선택 목록을 바꿀 때 표가 바로 따라와요. Angular 탭에는 기기가 어두운 화면을 쓰는지 알아보고, 화면이 사라질 때 듣던 것을 멈추는 부분도 있어요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.Cell padding is a grid option and light/dark is the data-mxg-theme attribute on the element around the grid. Tie both to one piece of app state and the grid follows the selects. The Angular tab also detects the device dark setting and stops listening when the view goes away. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 심화Advanced 배율이 걸린 컨테이너 안의 그리드A grid inside a scaled container 부모에 transform: scale(0.75)가 걸려 있어도 scale 옵션에 같은 값을 주면 컬럼 폭 끌기와 토스트 위치가 맞아요. 값을 1로 되돌리면 끄는 만큼 폭이 따라오지 않는 것을 볼 수 있어요.Even when the parent has transform: scale(0.75), giving the scale option the same value keeps column-resize drags and toast placement right. Setting it back to 1 shows the width no longer follows the pointer. #scale#setScale#getScale#scale#setScale#getScale 활용Intermediate 버튼으로 표에 직접 명령하기 (이동·추가·선택·삭제)Command the grid from buttons (move, add, select, remove) 화면의 버튼으로 표에 직접 명령을 내려요. 맨 아래 행으로 이동하고 포커스를 옮기고, 행을 넣고, 조건에 맞는 행을 고르고, 고른 행을 지워요. 표에 명령을 내리는 통로를 React, Vue, Angular가 각각 어떤 방식으로 받는지 비교할 수 있어요. 각 탭에는 같은 예제가 그 프레임워크의 방식으로 들어 있어요.Buttons give the grid direct commands: move to the last row and focus it, add a row, select rows by a rule, and remove the selected rows. Compare how React, Vue and Angular each obtain the handle used to command the grid. Each tab holds the same example written the way that framework does it. #react#vue#angular#react#vue#angular 심화Advanced 배율을 자동으로 재기Measure the scale automatically scale: 'auto'는 그리드가 스스로 화면 폭과 배치 폭의 비를 재요. 부모 배율이 자주 바뀌는 화면에서는 값을 알려 줄 필요가 없어요. getScale()로 지금 잰 값을 볼 수 있어요.scale: 'auto' makes the grid measure the ratio of screen width to layout width itself, so a screen whose parent factor keeps changing needs no value. getScale() returns the measured factor. #scale#auto#getScale#scale#auto#getScale 심화Advanced 앱 저장소의 값이 바뀔 때마다 표와 합계 따라가기Follow an app store: the grid and a total update with it 앱이 들고 있는 값이 1초마다 새로 바뀌면 표와 아래 합계가 함께 따라가요. 행은 한 곳에만 두고, 합계는 따로 저장하지 않고 행에서 계산해요. 라이브러리를 더 설치하지 않고, 프레임워크가 기본으로 주는 작은 저장소만 써요. React, Vue, Angular 탭에는 각 프레임워크의 방식으로 쓴 같은 예제가 들어 있어요.When the app's own data changes every second, the grid and the total follow it. Rows live in one place and the total is computed from them instead of stored. No extra library is installed; only the small store each framework provides is used. The React, Vue and Angular tabs hold the same example written the way each framework does it. #react#vue#angular#react#vue#angular 활용Intermediate 모달 대화상자 안의 그리드A grid inside a modal dialog 그리드를 모달 <dialog>에 넣어도 메뉴와 날짜 선택기가 대화상자 위에 보여요. popupParent로 팝업이 붙을 곳도 정할 수 있어요.Put the grid in a modal <dialog> and the menus and the date picker still show above it. popupParent picks where popups attach. #dialog#popupParent#picker#dialog#popupParent#picker 심화Advanced iframe 안에 그리드 그리기Render a grid inside an iframe 다른 문서(iframe)의 요소에 그리드를 만들어요. 스크립트는 부모 창에 있어도 돼요. 스타일은 그 문서의 head에 들어가고 편집기와 메뉴, 바깥 클릭도 그 문서에서 동작해요.Create a grid in an element of another document (an iframe). The script can stay in the parent window. Styles go into that document's head, and the editor, menus and outside clicks work inside it. #document#iframe#host document#document#iframe#host document 활용Intermediate 아이콘을 내 모양으로 바꾸기Replace the grid icons with your own icons로 정렬 화살표, 펼침 표시, 메뉴 버튼, 필터 버튼을 글자나 SVG로 바꿔요. 컬럼의 icons는 그 컬럼만 바꿔요. 허용 목록에 없는 SVG는 만들 때 거절돼요.icons replaces the sort arrows, the expand marks, the menu button and the filter button with text or SVG. A column's icons changes only that column. An SVG outside the allow list is refused at creation. #icons#sortAsc#sortNone#icons#sortAsc#sortNone 활용Intermediate 불러오는 동안 스켈레톤 보이기Show a skeleton while loading overlays.loading을 'skeleton'으로 두면 불러오는 동안 자리 표시 줄이 보여요. 줄 수는 skeletonRows로 정하고, 줄은 행이 아니라서 선택이나 내보내기에 닿지 않아요.Set overlays.loading to 'skeleton' and placeholder rows show while loading. skeletonRows sets how many; the rows are not grid rows, so selection and export never see them. #overlays#skeleton#loading#overlays#skeleton#loading 활용Intermediate 안내를 직접 그리기Draw the notice yourself overlays.noRows에 함수를 주면 안내 요소(host)에 원하는 모양을 직접 그려요. 정리 함수를 돌려주면 안내가 사라질 때 한 번 불러요.Give overlays.noRows a function and draw anything into the notice element (host). A returned cleanup function is called once when the notice goes away. #overlays#noRows#host#overlays#noRows#host 활용Intermediate 필터로 모두 가려졌을 때 다른 안내A different notice when the filter hides everything overlays.noMatch는 행은 있는데 필터로 모두 가려졌을 때만 쓰는 안내예요. 행이 아예 없을 때의 noRows와 다르게 보여 줄 수 있어요.overlays.noMatch is the notice for when rows exist but the filter hides all of them. It can differ from noRows, which is for no rows at all. #overlays#noMatch#noRows#overlays#noMatch#noRows 활용Intermediate 안내를 코드로 켜고 끄기Show and hide a notice from code api.showOverlay로 행 수와 상관없이 안내를 보이고 api.hideOverlay로 자동 판단으로 돌아가요. 점검 중 같은 문구를 글자로 바로 줄 수도 있어요.api.showOverlay shows a notice regardless of the row count and api.hideOverlay returns to automatic. You can also pass a plain text such as a maintenance message. #showOverlay#hideOverlay#overlays#showOverlay#hideOverlay#overlays 활용Intermediate CSV 글자를 행으로 읽어 넣기Read CSV text into rows importCsv(text, options)는 CSV 글자를 행으로 읽어 돌려줘요. 첫 줄은 컬럼 이름(id·제목)이고, 값은 컬럼 종류에 맞게 바뀌어요(숫자, 날짜, 불리언, 선택 목록). 빈 줄은 건너뛰고 바꾸지 못한 칸은 null과 알림으로 알려요. 그리드에는 setRows·addRows로 직접 넣어요.importCsv(text, options) reads CSV text into rows and returns them. The first line holds the column names (id or title), and values are converted to the column kinds (number, date, boolean, select). Blank lines are skipped and cells that cannot be converted become null with a notice. You put the rows into the grid with setRows or addRows. #import#csv#importCsv#import#csv#importCsv 활용Intermediate XML 글자를 행으로 읽어 넣기Read XML text into rows importXml(text, options)는 뿌리 아래 요소 하나를 행 하나로 읽어요. 칸은 자식 요소(<id>1</id>)나 속성(<person id="3"/>)이고 &amp; 같은 기본 엔티티, CDATA, 숫자 엔티티를 풀어요. DOCTYPE와 사용자 정의 엔티티, 깊이 64 초과, 크기 상한 초과는 parse-failed로 거절해요. rowTag·path로 행이 있는 곳을 가리켜요.importXml(text, options) reads each element under the root as a row. Cells are child elements (<id>1</id>) or attributes (<person id="3"/>), and the predefined entities such as &amp;, CDATA and numeric entities are decoded. DOCTYPE, custom entities, nesting beyond 64 and inputs over the size limit are refused with parse-failed. rowTag and path point to where the rows are. #import#xml#importXml#import#xml#importXml 활용Intermediate 주소에서 받아 행으로 넣기(loadUrl)Load rows from an address (loadUrl) loadUrl(url, options)는 주소의 JSON·CSV·XML을 받아 행으로 바꿔 넣어요. 형식은 Content-Type, 확장자 순으로 정하고 mode로 바꾸기·붙이기를 골라요. http·https만 받고 주소에 사용자 정보가 있거나 다른 출처이면(allowCrossOrigin 없이) 거절해요. 제한 시간·크기 상한·취소를 지원하고, 받는 동안 로딩 안내를 보이며 loadStarted·loadFinished·loadFailed 이벤트를 내요.loadUrl(url, options) fetches JSON, CSV or XML from an address and puts the rows into the grid. The format comes from Content-Type, then the extension, and mode picks replace or append. Only http and https are accepted, and an address with credentials or a cross-origin one (without allowCrossOrigin) is refused. It supports a timeout, a size limit and cancellation, shows the loading overlay while waiting, and emits loadStarted, loadFinished and loadFailed. #load#url#loadUrl#load#url#loadUrl 심화Advanced 두 그리드 사이에서 행 끌어 놓기Drag rows between two grids rowDrag의 group과 accept로 두 그리드가 서로의 행을 받아요. 받는 쪽의 mode가 move면 원본에서 지워지고 copy면 남아요. 행 키가 겹치면 받지 않아요.With rowDrag group and accept, two grids accept each other's rows. If the receiving mode is move the source row is removed, with copy it stays. Rows whose keys collide are refused. #row drag#two grids#group#row drag#two grids#group 활용Intermediate 손잡이로만 끌기와 본문 끌기Drag by handle only, or by the row body extraColumns에 handle을 적어 손잡이 칸의 자리를 정해요. 손잡이로만 끌리고 본문은 선택·편집에 써요. handle: false로 바꾸면 행 본문을 4px 끌어서 시작해요.List handle in extraColumns to place the handle column. Only the handle drags and the body is for selection and editing. With handle: false a drag starts by dragging the row body 4px. #row drag#handle#extraColumns#row drag#handle#extraColumns 심화Advanced 끄는 글자와 끌기 규칙 정하기Customize the drag label and rules rowDrag의 label로 고스트 글자를, canDrag·canDrop으로 끌 수 있는 행과 놓을 수 있는 자리를, beforeRowDrop 훅으로 놓기 직전 확인을 정해요.Use the rowDrag label for the ghost text, canDrag and canDrop for which rows can be dragged and where they can be dropped, and the beforeRowDrop hook for a last check before the drop. #row drag#label#canDrag#row drag#label#canDrag 심화Advanced RTL에서 고정 컬럼과 끌기 쓰기Pinned columns and dragging in RTL direction: 'rtl'에서 행 끌기 손잡이, 셀 범위 끌기, 채우기 핸들, 시작 쪽 고정 컬럼이 오른쪽부터 같은 방식으로 동작해요.With direction: 'rtl' the row drag handle, cell range dragging, the fill handle and the start-side pinned column work the same way, starting from the right. #rtl#pinned#row drag#rtl#pinned#row drag 심화Advanced 접었다 펴도 상세 패널 입력 그대로 두기Keep detail panels alive when collapsed 주문 줄을 보여 주는 상세 패널을 접어도 부수지 않고 보관해요. 다시 펼치면 안쪽 그리드에 고친 값이 그대로 있어요. 보관은 최대 2개까지예요.Collapsing a detail panel with order lines keeps it instead of destroying it. Expand it again and the edited values are still in the inner grid. At most 2 panels are kept. #detail#keepAlive#maxKeepAlive#detail#keepAlive#maxKeepAlive 심화Advanced 저장 안 된 편집이 있으면 정렬·필터 막기Block sort and filter while edits are unsaved 상세 패널 안 그리드에 저장 안 된 편집이 있는 동안에는 마스터의 정렬과 필터가 막히고, 막을 때마다 로그가 남아요. 편집을 버리면 다시 풀려요.While the grid inside a detail panel has unsaved edits, sorting and filtering of the master are blocked and each block is logged. Discard the edits and they work again. #detail#dirtyLock#detailDirtyBlocked#detail#dirtyLock#detailDirtyBlocked 심화Advanced 주문 줄을 더하면 주문 번호 자동으로 채우기Fill the order ID automatically on new lines 상세 패널 안 그리드에 주문 번호(orderId) 없이 줄을 더해도 마스터 주문의 id가 자동으로 들어가요. keyFill 옵션 한 줄이면 돼요.Add a line without an order ID (orderId) to the grid inside a detail panel and the master order's id is filled in automatically. One keyFill option does it. #detail#keyFill#attachGrid#detail#keyFill#attachGrid 심화Advanced 주문마다 나눠 저장하고 실패한 주문만 남기기Save each order separately and keep only failures saveDetails()가 주문마다 저장 함수를 불러요. 성공한 주문은 변경 표시가 지워지고, 실패한 주문은 표시가 남아 다시 저장할 수 있어요. 3번 주문은 일부러 실패해요.saveDetails() calls the save function once per order. Saved orders lose their change marks; failed orders keep them so you can retry. Order 3 fails on purpose. #detail#splitSave#saveDetails#detail#splitSave#saveDetails 활용Intermediate 고른 칸으로 차트 만들기 (SVG 어댑터)Build a chart from selected cells (SVG adapter) 맥스그리드는 차트 라이브러리를 싣지 않아요. 예제 안에 작은 SVG 어댑터를 적어 chartAdapter로 넘기고, 드래그로 고른 칸을 막대·꺾은선·원 차트로 그려요.MaxGrid ships no chart library. A small SVG adapter written in the example is passed as chartAdapter, and the cells you drag-select are drawn as a column, line or pie chart. #chartAdapter#createChart#chartCreated#chartAdapter#createChart#chartCreated 활용Intermediate 필터에 따라 바뀌는 차트A chart that follows the filter createChart의 source를 'visible'로 두면 지금 보이는 행만 차트가 돼요. 필터 행에 지역을 입력하면 차트가 바로 따라가요.With source 'visible' in createChart the chart shows only the rows currently visible. Type a region in the filter row and the chart follows at once. #chartAdapter#createChart#visible#chartAdapter#createChart#visible 심화Advanced Chart.js 어댑터로 차트 만들기Build a chart with a Chart.js adapter 예제 안의 어댑터가 CDN에서 Chart.js 4를 불러와 chartAdapter로 이어 줘요. 불러오는 동안 온 갱신은 모아 두었다가 로드가 끝나면 그려요.The adapter in this example loads Chart.js 4 from a CDN and connects it as chartAdapter. Updates that arrive while loading are queued and drawn once the script is ready. #chartAdapter#createChart#Chart.js#chartAdapter#createChart#Chart.js 입문Beginner 오른쪽 클릭 메뉴로 차트 만들기Create a chart from the context menu cellMenu를 켜고 chartAdapter를 주면 고른 칸을 오른쪽 클릭했을 때 '차트 만들기' 항목이 나타나요. 그리드가 차트 팝업을 직접 띄워요.With cellMenu on and a chartAdapter set, right-clicking selected cells shows a 'Create chart' item. The grid opens the chart popup itself. #chartAdapter#cellMenu#createChart#chartAdapter#cellMenu#createChart 심화Advanced 주문 내역과 합계 그리드를 나란히 맞추기Align an order list with a totals grid alignGrids나 api.alignWith로 그리드 둘을 이으면 한쪽에서 바꾼 컬럼 폭·순서·숨김이 다른 쪽에도 적용되고, 가로 스크롤도 서로 따라가요. 위는 주문 내역, 아래는 같은 컬럼의 합계 한 줄이에요.Link two grids with alignGrids or api.alignWith and a column width, order or visibility changed in one is applied to the other, and horizontal scrolling follows both ways. The top grid lists orders and the bottom one is a totals row with the same columns. #alignGrids#alignWith#gridsAligned#alignGrids#alignWith#gridsAligned 심화Advanced 스크롤만 맞추기Align only the scroll alignGrids의 columns를 빈 배열로 주면 컬럼 폭·순서는 건드리지 않고 스크롤만 맞춰요. 컬럼이 서로 달라도 되고, scroll로 x, y, both, none 중 맞출 방향을 골라요.Pass an empty columns array to alignGrids and only the scroll is aligned; column widths and order stay independent, and the grids may have different columns. Use scroll to pick x, y, both or none. #alignGrids#scroll#columns#alignGrids#scroll#columns 심화Advanced 머리글·본문·합계 그리드 셋 맞추기Align a header, a body and a totals grid alignGrids는 그리드를 2~4개까지 이어요. 머리글만 있는 그리드, 본문 그리드, 합계 그리드를 쌓아 두고 맨 위 머리글에서 컬럼 폭이나 순서를 바꾸면 셋이 함께 바뀌고 스크롤도 같이 움직여요.alignGrids links two to four grids. Stack a header-only grid, a body grid and a totals grid and a width or order change in the top header applies to all three, and the scroll moves together. #alignGrids#three grids#header grid#alignGrids#three grids#header grid 심화Advanced 행 저장소 하나를 두 그리드가 같이 쓰기Two grids on one shared rows store createRowsStore로 만든 저장소를 두 그리드의 rowsStore 옵션에 주면 한쪽의 편집·추가·삭제가 다른 쪽에도 나타나요.Give a store from createRowsStore to the rowsStore option of two grids and edits, adds and removes in one show up in the other. #rowsStore#createRowsStore#shared#rowsStore#createRowsStore#shared 심화Advanced 마스터 그리드와 요약 그리드 연결Master grid with a summary grid 편집할 수 있는 마스터와 읽기 전용 요약이 같은 저장소를 봐요. 마스터를 고치면 요약과 합계가 따라와요.An editable master and a read-only summary read the same store. Editing the master updates the summary and the total. #rowsStore#createRowsStore#summary#rowsStore#createRowsStore#summary 심화Advanced 같은 저장소, 서로 다른 필터One store, different filters 두 그리드가 같은 행을 보지만 필터는 따로예요. 값이 바뀌면 각 그리드의 필터가 다시 판정해요.Two grids see the same rows but keep their own filters. When a value changes, each grid's filter judges the row again. #rowsStore#createRowsStore#filter#rowsStore#createRowsStore#filter 심화Advanced Highcharts로 차트 만들기Build a chart with Highcharts chartAdapter 레시피로 Highcharts를 이어요. Highcharts는 상용 라이브러리라서, 단추를 눌러야 공식 CDN(고정 버전·SRI)에서 불러와요. 필터·정렬·편집이 차트에 바로 반영돼요.A chartAdapter recipe for Highcharts. It is a commercial library, so it loads from the official CDN (pinned version, SRI) only after you press the button. Filter, sort and edits update the chart at once. #chartAdapter#createChart#Highcharts#chartAdapter#createChart#Highcharts 심화Advanced Highcharts 차트 종류 바꾸기Switch Highcharts chart types 같은 Highcharts 어댑터로 막대·가로 막대·꺾은선·영역·원을 바꿔 가며 그려요. Highcharts는 단추를 누를 때만 공식 CDN에서 불러와요.The same Highcharts adapter draws column, bar, line, area and pie charts. Highcharts loads from the official CDN only when you press the button. #chartAdapter#createChart#Highcharts#chartAdapter#createChart#Highcharts 심화Advanced ECharts로 차트 만들기Build a chart with ECharts chartAdapter 레시피로 ECharts를 이어요. ECharts는 단추를 눌러야 jsDelivr CDN(고정 버전·SRI)에서 불러와요. 필터·정렬·편집이 차트에 바로 반영돼요.A chartAdapter recipe for ECharts. It loads from the jsDelivr CDN (pinned version, SRI) only after you press the button. Filter, sort and edits update the chart at once. #chartAdapter#createChart#ECharts#chartAdapter#createChart#ECharts 심화Advanced ECharts 차트 종류 바꾸기Switch ECharts chart types 같은 ECharts 어댑터로 막대·가로 막대·꺾은선·영역·원을 바꿔 가며 그려요. ECharts는 단추를 누를 때만 jsDelivr CDN에서 불러와요.The same ECharts adapter draws column, bar, line, area and pie charts. ECharts loads from the jsDelivr CDN only when you press the button. #chartAdapter#createChart#ECharts#chartAdapter#createChart#ECharts 입문Beginner jQuery로 그리드 만들기Create a grid with jQuery 스크립트 태그 세 줄(jQuery, 맥스그리드, 어댑터)로 $('#grid').maxgrid(옵션)을 쓰고, 그리드 이벤트를 jQuery 이벤트(maxgrid:이름)로 받아요.Three script tags (jQuery, MaxGrid, the adapter) give you $('#grid').maxgrid(options), and grid events arrive as jQuery events (maxgrid:name). #jquery#jQuery#$.fn.maxgrid#jquery#jQuery#$.fn.maxgrid 활용Intermediate jQuery와 서버 모드(쪽·정렬·필터)jQuery with server mode (paging, sort, filter) 쪽 번호·정렬·필터를 서버에 보내고 { rows, totalRows }를 받는 서버 모드를 jQuery 어댑터로 써요. 예제는 브라우저 안의 가짜 서버로 대신하고, 코드 주석에 fetch로 바꾸는 줄이 있어요.Use server mode (send page, sort and filter, receive { rows, totalRows }) through the jQuery adapter. The example uses a fake server inside the browser; a comment shows the fetch line to use instead. #jquery#jQuery#pagination#jquery#jQuery#pagination

간트 차트Gantt chart 21

표와 함께 일정·의존 관계를 막대로 보기See schedules and dependencies as bars next to a grid

입문Beginner 표 옆에 간트 차트 붙이기Add a Gantt chart next to the grid 작업 표와 간트 차트를 나란히 놓고, 스크롤·행 선택·접기를 하나처럼 움직여요.Put the task grid and a Gantt chart side by side and scroll, select and collapse them as one. #gantt#createGantt#createSplitView#gantt#createGantt#createSplitView 활용Intermediate 일·주·월 단위로 확대·축소하기Zoom the chart by day, week or month 눈금 단위를 일·주·월로 바꾸고, 프로젝트 전체 보기와 오늘로 이동을 눌러 봐요.Switch the scale between day, week and month, fit the whole project, or jump to today. #gantt#setZoom#fitToProject#gantt#setZoom#fitToProject 활용Intermediate 표 트리와 차트를 함께 접고 펴기Collapse and expand the grid tree and the chart together 표의 트리를 접고 펴면 차트의 막대 줄도 같이 접히고 펴져요.Collapse or expand the grid tree and the chart rows follow. #gantt#tree#collapse#gantt#tree#collapse 활용Intermediate 달력이 다른 작업과 휴일 음영Tasks on different calendars and holiday shading 달력 3개(월-금, 월-토, 일-목)와 휴일을 넣고, 주말·휴일 음영과 툴팁의 작업일 수를 봐요.Use three calendars (Mon-Fri, Mon-Sat, Sun-Thu) with holidays and see the weekend and holiday shading and the working days in the tooltip. #gantt#calendar#holiday#gantt#calendar#holiday 활용Intermediate 작업 5,000개를 가상 스크롤로 그리기Draw 5,000 tasks with virtual scrolling 시험용 작업 1,000개 또는 5,000개를 불러오고 걸린 시간을 기록에서 봐요.Load 1,000 or 5,000 fixture tasks and read the load time in the log. #gantt#makeFixture#virtualization#gantt#makeFixture#virtualization 활용Intermediate 어두운 화면과 CSS 변수로 색 바꾸기Dark mode and CSS variable colors 표와 차트를 함께 밝게·어둡게 바꾸고, --mxg-gantt-* 변수로 막대 색을 바꿔 봐요.Switch grid and chart between light and dark and restyle the bars with --mxg-gantt-* variables. #gantt#theme#dark#gantt#theme#dark 활용Intermediate 차트 이벤트를 기록으로 보기Watch the chart events in the log 행 선택, 작업 열기, 보이는 구간 변경, 접기 이벤트를 기록 패널에 남겨요.Log row selection, task open, viewport change and collapse toggles in the log panel. #gantt#events#row-select#gantt#events#row-select 활용Intermediate PMS JSON을 변환해 그리기Normalize PMS JSON and draw it snake_case PMS 데이터를 normalizePmsData로 바꿔 표와 차트에 넣고 개수를 비교해요.Convert snake_case PMS data with normalizePmsData, load it into grid and chart and compare the counts. #gantt#normalizePmsData#PMS#gantt#normalizePmsData#PMS 활용Intermediate 간트 막대를 끌어서 일정 고치기Edit the schedule by dragging bars 막대를 옮기고, 가장자리를 끌어 기간을 바꾸고, 진행 손잡이로 진행률을 고쳐요. 서버가 승인하면 확정돼요.Move a bar, drag its edge to change the length, or drag the progress handle. The change is final once the host approves it. #gantt#editable#task-move#gantt#editable#task-move 활용Intermediate 막대를 이어 의존 관계 만들고 지우기Create and delete dependencies by linking bars 막대 끝의 이음 손잡이를 다른 막대로 끌어 의존을 만들고, 화살표를 눌러 Delete로 지워요.Drag a bar's link handle onto another bar to create a dependency, or click an arrow and press Delete to remove it. #gantt#editable#dependency-create#gantt#editable#dependency-create 심화Advanced 서버가 거절하면 막대가 제자리로 돌아와요A rejected edit sends the bar back 서버가 일부 변경을 거절하면 revertIntent로 막대를 되돌리고, 승인한 변경만 applyPatch로 확정해요.When the host rejects an edit it calls revertIntent and the bar returns; only approved edits are confirmed with applyPatch. #gantt#editable#revertIntent#gantt#editable#revertIntent 활용Intermediate 편집할 수 없는 작업 알아보기Which tasks cannot be edited 요약 작업, 일정 없는 작업은 전부, 마일스톤은 이동만 되고 나머지는 막혀요.Summary and unscheduled tasks are fully locked, and milestones can only be moved. #gantt#editable#summary#gantt#editable#summary 심화Advanced PMS 같은 호스트: 가짜 서버와 409·거절 처리A PMS-like host: fake server, 409 and refusals 막대를 놓으면 가짜 서버가 버전을 확인하고 요약 날짜를 합산해 돌려줘요. 409 충돌, 요약 작업 거절, 시간 초과, 네트워크 오류를 모두 revertIntent로 처리해요.On release a fake server checks the version and rolls up the summary dates. A 409 conflict, a summary refusal, a timeout and a network error all end in revertIntent. #gantt#editable#applyPatch#gantt#editable#applyPatch 심화Advanced 키보드로 막대 고르고 고치기Pick and edit bars with the keyboard Tab으로 차트에 들어가 화살표로 막대를 고르고, Alt·Ctrl 화살표로 일정을 고치고, Tab으로 들여써요.Tab into the chart, pick bars with the arrow keys, change dates with Alt and Ctrl plus arrows, and indent with Tab. #gantt#keyboard#accessibility#gantt#keyboard#accessibility 심화Advanced 행 순서와 단계를 코드로 바꾸기Change row order and level from code 표에서 행을 놓은 자리를 api.reorderTask로 알리면 가능한 자리인지 보고 task-reorder 요청을 보내요.Tell the chart where a row was dropped with api.reorderTask; it checks the drop and sends a task-reorder intent. #gantt#reorder#task-reorder#gantt#reorder#task-reorder 활용Intermediate 기준선과 비교하기Compare the plan with the baseline 처음 계획(기준선)을 막대 아래 얇은 막대로 겹쳐 그려 일정이 얼마나 밀렸는지 한눈에 봐요.Draw the original plan as a thin bar under each bar to see how far the schedule has slipped. #gantt#baseline#baselineStart#gantt#baseline#baselineStart 활용Intermediate 주공정 강조하기Highlight the critical path 호스트가 계산한 주공정 작업과 그 사이의 연결선을 강조해서, 늦으면 전체가 늦어지는 작업을 찾아요.Highlight the critical-path tasks and the links between them, so you can see which delays move the whole project. #gantt#critical#criticalIds#gantt#critical#criticalIds 활용Intermediate 프로젝트 관리 화면 만들기Building a project-management screen 작업 트리 표, 간트 차트, 구분선, 선택한 작업의 상세 줄을 한 화면에 모아 만들어요.Put a task-tree grid, a Gantt chart, a splitter and a detail line for the selected task on one screen. #gantt#recipe#project#gantt#recipe#project 입문Beginner 그리드 없이 간트 차트만 쓰기The Gantt chart without a grid 표 없이 간트 차트 하나만 페이지에 넣어요. 호스트 요소와 setData, 이벤트만 있으면 돼요.Put a single Gantt chart on a page with no grid: one host element, setData and events. #gantt#createGantt#setData#gantt#createGantt#setData 활용Intermediate 그리드 없는 간트 편집과 이벤트 기록Gantt editing without a grid, with an event log 편집을 켠 차트가 보내는 의도 이벤트를 받아 가짜 서버가 확정하거나 거절해요(applyPatch, revertIntent).The chart with editing on sends intent events; a fake server confirms or refuses them (applyPatch, revertIntent). #gantt#editable#applyPatch#gantt#editable#applyPatch 심화Advanced 더블클릭으로 작업 편집 창 열기Open an edit dialog on double click 막대를 더블클릭하거나 Enter를 누르면 task-open이 오고, 앱이 만든 편집 창이 열려요. 저장하면 서버 승인 뒤 차트와 표가 같이 바뀌어요.Double-click a bar or press Enter and task-open arrives; the app opens its own edit dialog. After the host approves, the chart and the grid change together. #gantt#editable#task-open#gantt#editable#task-open