本文へ移動

@eightkk/vue-weave / core / createTimeBucketColumns

Function: createTimeBucketColumns() ​

createTimeBucketColumns<P>(periods, options?): TimeBucketColumn[]

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

Column descriptors { id, label, width, start, end } for half-open periods. IDs are deterministic: by default idPrefix + start, so a column keeps its ID when the shown periods scroll. Throws TypeError for a non-array or a period that is not an object, RangeError for a non-finite or empty period, periods out of order or overlapping (gaps are allowed), and a width that is not positive and finite, and Error for an invalid or duplicate column ID.

Type Parameters ​

P ​

P extends TimeBucketPeriod

Parameters ​

periods ​

readonly P[]

options? ​

TimeBucketColumnOptions<P> = {}

Returns ​

TimeBucketColumn[]

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