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-
Used to configure tick cell class
-
Used to configure tick entity name
-
Used to configure tick cell wrapper class
-
Config used to show or not the tick editor on cell double click.
-
The initial data, to fill the resourceTickStore with. Should be an array of ResourceTickModel or configuration objects.
-
Store that holds resource ticks - instances of ResourceTickModel. A store will be automatically created if none is specified.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TickCells class, or subclass thereof.
-
Identifies an object as an instance of TickCells class, or subclass thereof.