本文へ移動

@eightkk/vue-weave / core / TimeBucketColumnOptions

Interface: TimeBucketColumnOptions<P> ​

Defined in: src/core/timeBuckets.ts:33

Type Parameters ​

P ​

P extends TimeBucketPeriod = TimeBucketPeriod

Properties ​

id? ​

optional id?: (period, index) => string

Defined in: src/core/timeBuckets.ts:35

Column ID of a period. Wins over period.id. Default period.id, else idPrefix + period.start.

Parameters ​

period ​

P

index ​

number

Returns ​

string


idPrefix? ​

optional idPrefix?: string

Defined in: src/core/timeBuckets.ts:37

Prefix of the default column IDs. Default 'bucket:', so a period starting at 0 is bucket:0.


label? ​

optional label?: (period, index) => string

Defined in: src/core/timeBuckets.ts:39

Column label of a period. Default period.label, else String(period.start).

Parameters ​

period ​

P

index ​

number

Returns ​

string


width? ​

optional width?: number | ((period, index) => number)

Defined in: src/core/timeBuckets.ts:41

Column width in pixels, for every column or per period. A positive finite number. Default 80.

MIT ライセンスで公開しています。