tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

grid sort (use_client ๋ฐฉ์‹)

Open YounghoonYoo opened this issue 1 year ago โ€ข 0 comments

  1. DataSource๋ฅผ ์ด์šฉํ•œ ๋ฉ€ํ‹ฐ ์ •๋ ฌ์ด ๋ถˆ๊ฐ€ํ•˜์—ฌ, ๋ณ„๋„๋กœ ๊ตฌํ˜„ํ•˜๊ณ ์žํ•ฉ๋‹ˆ๋‹ค .
  2. ๋‹ค๋งŒ, beforeSort, afterSort๋ฅผ ์ด์šฉํ•ด์•ผํ•˜๋Š” ๊ฒƒ์œผ๋กœ ๋ณด์—ฌ์ง‘๋‹ˆ๋‹ค .
  3. ๋ฌธ์ œ๋Š” event ํ˜ธ์ถœ โ†’ ๋ฐ์ดํ„ฐ get โ†’ resetData โ†’ ์ •๋ ฌ ์•„์ด์ฝ˜ ์œ ์ง€๋ฅผ ์œ„ํ•ด grid.sort(column, asending, multiple) ํ˜ธ์ถœํ•˜๋ฉด ๋ฌดํ•œ๋ฃจํ”„ํ†  ์ด๋ฒคํŠธ๊ฐ€ ๋™์ž‘ํ•˜์—ฌ, ๋ฐ์ดํ„ฐ๋ฅผ ๋ฌดํ•œ์œผ๋กœ ๊ฐ€์ ธ์˜ค๊ฒŒ๋ฉ๋‹ˆ๋‹ค . โ†’ ๋ฌดํ•œ๋ฃจํ”„ํŠธ ์ด๋ฒคํŠธ๊ฐ€ ์ •์ƒ์ธ๊ฑด ์•Œ๊ณ  ์žˆ์œผ๋‚˜, ์ •๋ ฌ multiple ์ˆœ์„œ ์•„์ด์ฝ˜ ๋“ฑ์„ ์œ ์ง€ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ• ๊นŒ์š”? image

๋ฌด์–ธ๊ฐ€ event ๋ฐœ์ƒ ์—†์ด ์ƒํƒœ๋งŒ ๋ณ€๊ฒฝํ•˜๋Š”๊ฒŒ ํ•„์š”ํ•  ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•˜์…จ์„๊นŒ์š” ? ํ•ด๋‹น ์•„์ด์ฝ˜์„ ์œ ์ง€ํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

YounghoonYoo avatar Jan 07 '24 10:01 YounghoonYoo