v7.3.0

TickCells
internal

A feature allowing you to display values in the time axis cell for each row in a scheduler.

This feature is disabled by default.

const scheduler = new Scheduler({
     features : {
         tickCells : {
             resourceTicksData : [
                 {
                     id           : 1,
                     startDate    : '2024-06-03',
                     value        : 20,
                     resourceId   : 1,
                     durationUnit : 'day',
                     duration     : 1
                 }
             ],
             tickRenderer({ value = 0 }) {
                 const
                     hours = Math.floor(value),
                     hourFraction =  60 * (value - hours);
                 return value ? `${hours}:${String(hourFraction).padStart(2, '0')}` : '';
             }
         }
     }
});
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class

Events

Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

Event handlers

Event handlers are callbacks called as a result of certain actions in this class
type: tickCells

Source path

Scheduler/feature/TickCells.js

Contents