UNITS_scale_text
info
This functionality is available in the PRO edition only.
Description
Specifies items of the X-Axis
UNITS_scale_text: (key: string, label: string, unit: object, date: Date) => string;
Parameters
key- (required) string - the unit's id (key)label- (required) string - the unit's labelunit- (required) object - the unit object containing the 'key' and 'label' propertiesdate- (required) Date - the date of a column (for multi-day Units view)
Returns
text- (string) - html text for rendering in the scheduler
Example
scheduler.templates.unit_scale_text = function(key, label, unit, date) {
if (option.css) {
return "<span className='" + option.css + "'>" + label + "</span>";
} else {
return label;
}
};
Applicable views: Units view
Details
note
The template requires the units plugin to be activated.
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.