본문으로 건너뛰기

UNITS_scale_text

Description

X축에 표시되는 항목을 정의합니다

UNITS_scale_text: (key: string, label: string, unit: object, date: Date) => string;

Parameters

  • key - (required) string - 단위의 식별자
  • label - (required) string - 단위의 레이블
  • unit - (required) object - 'key'와 'label'을 포함하는 단위 객체
  • date - (required) Date - 열에 해당하는 날짜 (다중 일 단위 뷰에 유용함)

Returns

  • text - (string) - scheduler에 표시될 HTML 콘텐츠

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

노트

이 템플릿은 units 플러그인이 활성화되어 있어야 합니다.

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.