MeasureNodeBuilder

Builder node measure dùng để cấu hình một measure

Phương thức

constructor

Định nghĩa:

constructor(yMap: Y.Map<any>)

Tham số:

Tham sốKiểuMô tả
yMapY.Map-

getId

Lấy ID node

Định nghĩa:

getId(): string

Trả về: string

getField

Lấy tên field

Định nghĩa:

getField(): string

Trả về: string

getEncoding

Lấy vị trí encoding chart

Định nghĩa:

getEncoding(): VBIMeasure['encoding'] | undefined

Trả về: VBIMeasure['encoding'] \| undefined

getSort

Lấy cấu hình sắp xếp

Định nghĩa:

getSort(): VBISort | undefined

Trả về: VBISort \| undefined

setAlias

Thiết lập tên hiển thị

Định nghĩa:

setAlias(alias: string): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
aliasstring- Tên hiển thị

setEncoding

Thiết lập vị trí encoding chart

Định nghĩa:

setEncoding(encoding: NonNullable<VBIMeasure['encoding']>): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
encodingNonNullable<VBIMeasure['encoding']>- Vị trí encoding measure

setSort

Thiết lập cấu hình sắp xếp

Định nghĩa:

setSort(sort: VBISort): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
sortVBISort- Cấu hình sắp xếp

setAggregate

Thiết lập hàm tổng hợp

Định nghĩa:

setAggregate(aggregate: VBIMeasure['aggregate']): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
aggregateVBIMeasure['aggregate']- Cấu hình tổng hợp

setFormat

Thiết lập định dạng số

Định nghĩa:

setFormat(format: VBIMeasureFormat): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
formatVBIMeasureFormat- Cấu hình định dạng

getFormat

Lấy định dạng số

Định nghĩa:

getFormat(): VBIMeasureFormat | undefined

Trả về: VBIMeasureFormat \| undefined

clearFormat

Xóa cấu hình định dạng số

Định nghĩa:

clearFormat(): this

Trả về: this

clearSort

Xóa cấu hình sắp xếp

Định nghĩa:

clearSort(): this

Trả về: this

toJSON

Xuất thành JSON

Định nghĩa:

toJSON(): VBIMeasure

Trả về: VBIMeasure