API
API
PivotHighlightRuleOptions

PivotHighlightRuleOptions

ํ•˜์ด๋ผ์ดํŠธ ์˜ค๋ฒ„๋ ˆ์ด ๊ทœ์น™.

Options

type: 'greater' | 'greaterEqual' | 'less' | 'lessEqual' | 'between' | 'notBetween' | 'equal' | 'notEqual' | 'in' | 'notIn' | 'top' | 'bottom' | 'topPercent' | 'bottomPercent' | 'aboveAvg' | 'belowAvg'

์กฐ๊ฑด ์œ ํ˜•.

default: undefined

value: number (opens in a new tab) | Array (opens in a new tab)<number (opens in a new tab)>[number (opens in a new tab) | number (opens in a new tab)]

์กฐ๊ฑด ๊ฐ’.

  • 'top' / 'bottom' : ํ•ญ๋ชฉ ์ˆ˜ (์ •์ˆ˜)
  • 'topPercent' / 'bottomPercent' : ๋ฐฑ๋ถ„์œจ (0~100)
  • 'greater' ๋“ฑ ๋น„๊ต ์กฐ๊ฑด : ์ž„๊ณ„๊ฐ’
  • 'between' / 'notBetween' : [ํ•˜ํ•œ๊ฐ’, ์ƒํ•œ๊ฐ’]
  • 'in' / 'notIn' : ๋น„๊ต ๋Œ€์ƒ ๊ฐ’ ๋ชฉ๋ก (์˜ˆ: [10, 20, 30])
  • 'aboveAvg' / 'belowAvg' : ์‚ฌ์šฉํ•˜์ง€ ์•Š์Œ

default: undefined

style: PivotCellStyle

๊ฐ•์กฐ ์Šคํƒ€์ผ.
์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ๊ธฐ๋ณธ ๊ฐ•์กฐ ์Šคํƒ€์ผ์ด ์ ์šฉ๋œ๋‹ค.

default: ```{ color: 'red' }```

className: string (opens in a new tab)

์‚ฌ์šฉ์ž ์ •์˜ CSS ํด๋ž˜์Šค ์ด๋ฆ„.
style ์˜ต์…˜์œผ๋กœ ํ‘œํ˜„ํ•˜๊ธฐ ์–ด๋ ค์šด ๊ฒฝ์šฐ์— ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค.

default: undefined

cellScope: 'value' | 'subtotal' | 'total' | 'all' | Array (opens in a new tab)<'value' | 'subtotal' | 'total'>

์ด ๊ทœ์น™์„ ์ ์šฉํ•  ์…€ ํƒ€์ž….
์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด overlay์˜ cellScope๋ฅผ ๋”ฐ๋ฅธ๋‹ค.

overlay scope์˜ ๋ถ€๋ถ„์ง‘ํ•ฉ์œผ๋กœ ํ•ด์„๋œ๋‹ค. ์ฆ‰, ์—ฌ๊ธฐ์„œ overlay scope๋ณด๋‹ค ๋” ๋„“์€ ๋ฒ”์œ„๋ฅผ ์ง€์ •ํ•ด๋„ overlay scope ๋ฐ–์˜ ์…€์—๋Š” ์ ์šฉ๋˜์ง€ ์•Š๋Š”๋‹ค. (overlay scope์ด "์ด overlay๊ฐ€ ์ฒ˜๋ฆฌํ•  ์…€ ์˜์—ญ"์„ ์ •์˜ํ•˜๊ธฐ ๋•Œ๋ฌธ.)

default: undefined overlay์˜

See Also

CellScope

compareScope: 'all' | 'row' | 'column' | 'level' | 'rowGroup' | 'columnGroup' | Array (opens in a new tab)<'row' | 'column' | 'level' | 'rowGroup' | 'columnGroup'>

์ด ๊ทœ์น™์˜ ํ†ต๊ณ„ ํ‰๊ฐ€ ๋ฒ”์œ„(top/bottom/aboveAvg ๋“ฑ).
์ง€์ •ํ•˜์ง€ ์•Š์œผ๋ฉด overlay์˜ compareScope๋ฅผ ๋”ฐ๋ฅธ๋‹ค.

cellScope์™€ ๋‹ฌ๋ฆฌ overlay scope๊ณผ ๋…๋ฆฝ์ ์œผ๋กœ ๋™์ž‘ํ•œ๋‹ค (rule์ด ๋‹จ์ˆœ override). ๊ทœ์น™๋งˆ๋‹ค ๋น„๊ต ๋‹จ์œ„๊ฐ€ ๋‹ค๋ฅธ ์ผ€์ด์Šค๋ฅผ ์ž์—ฐ์Šค๋Ÿฝ๊ฒŒ ํ‘œํ˜„ํ•œ๋‹ค.

default: undefined overlay์˜

See Also

CompareScope