본문으로 건너뛰기

time_picker

Description

라이트박스에서 드롭다운 시간 선택기의 형식을 지정합니다

time_picker: (date: Date) => string

Parameters

  • date - (required) Date - 형식을 적용해야 하는 날짜

Returns

  • text - (string) - Gantt 차트에 렌더링될 HTML 텍스트

Example

gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea", focus:true},
{name:"time",type:"duration",map_to:"auto",time_format:["%d","%m","%Y","%H:%i"]}
];

gantt.templates.time_picker = function(date){
return gantt.date.date_to_str(gantt.config.time_picker)(date);
};
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.