UNITS_scale_text
Info
Dieses Feature ist nur in der PRO Edition verfügbar.
Description
Definiert die Elemente, die auf der X-Achse angezeigt werden
UNITS_scale_text: (key: string, label: string, unit: object, date: Date) => string;
Parameters
key- (required) string - der Bezeichner der Einheitlabel- (required) string - die Beschriftung der Einheitunit- (required) object - ein Objekt, das die Einheit repräsentiert, einschließlich 'key' und 'label'date- (required) Date - das Datum, das einer Spalte entspricht (nützlich für Mehrtagesansichten der Units)
Returns
text- (string) - HTML-Inhalt, der im Scheduler angezeigt wird
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
Hinweis
Diese Vorlage erfordert, dass das units Plugin aktiviert ist.
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.