IPivotFieldSort
ํ๋ ์ ๋ ฌ ์ค์ .
Properties
compareFn: (a: string (opens in a new tab), b: string (opens in a new tab), params: PivotFieldSortParams) => number (opens in a new tab)
'callback' ์ ๋ ฌ ์: ๋น๊ต ํจ์
default: undefined
direction: 'asc' | 'desc' | 'none'
์ ๋ ฌ ๋ฐฉํฅ. 'asc' ์ค๋ฆ์ฐจ์, 'desc' ๋ด๋ฆผ์ฐจ์.
default: 'asc'
measure: string (opens in a new tab) | number (opens in a new tab)
'total' / 'value' ์ ๋ ฌ ์: ์ธก์ ๊ฐ ์ธ๋ฑ์ค ๋๋ ํ๋๋ช (๊ธฐ๋ณธ: 0)
default: undefined
target: Array (opens in a new tab)<string (opens in a new tab)>'total'
'value' ์ ๋ ฌ ์: ๋์ ํ/์ด ์์น.
- string (opens in a new tab)[]: dimension label ๋ฐฐ์ด๋ก ๊ทธ๋ฃน ์์น ์ง์ (์: ['Q1', '01'], ['Q1']). ํด๋น ๊ทธ๋ฃน์ ๊ฐ ๊ธฐ์ค์ผ๋ก ์ ๋ ฌ. ๋ง์ง๋ง ๋ผ๋ฒจ์ด leaf๊ฐ ์๋๋ฉด ํด๋น ๋ ๋ฒจ์ ์๊ณ ๊ธฐ์ค์ผ๋ก ์ ๋ ฌ.
- 'total': Grand Total
- ๋ฏธ์ง์ : 'total' ๊ณผ ๋์ผํ๊ฒ ์ฒ๋ฆฌ๋จ
default: undefined
type: 'label' | 'value' | 'custom' | 'callback'
์ ๋ ฌ ์ ํ.
- 'label': ๋ผ๋ฒจ ๊ธฐ์ค ์ ๋ ฌ
- 'value': ํน์ ํ/์ด ์์น์ ๊ฐ ๊ธฐ์ค ์ ๋ ฌ
- 'custom': ์ฌ์ฉ์ ์ ์ ์์(values ๋ฐฐ์ด) ๊ธฐ๋ฐ ์ ๋ ฌ
- 'callback': ์ฌ์ฉ์ ์ ์ ๋น๊ต ํจ์ ๊ธฐ๋ฐ ์ ๋ ฌ
default: 'label'
values: Array (opens in a new tab)<string (opens in a new tab) | number (opens in a new tab)>
'custom' ์ ๋ ฌ ์: ์ฌ์ฉ์ ์ ์ ๊ฐ ์์
default: undefined