라이트박스 내 select 컨트롤의 라벨을 가져옵니다.
property | string | 컨트롤이 대응하는 데이터 속성 이름 |
key | string | number | 옵션의 식별자. 이 값은 작업(task)의 데이터 속성과 매칭되어 select 옵션을 작업과 연결합니다. |
string | 라이트박스 내 select 컨트롤에 연결된 라벨 |
gantt.config.lightbox.sections=[
{name:"custom", type:"select", map_to:"unit_id", options:[
{key:1, label:"James Smith"},
{key:2, label:"John Williams"}]}
];
const holder2 = gantt.getLabel("unit_id", 2);// ->"John Williams"
이 메서드는 라이트박스 내 'select' 컨트롤에 대해서만 작동하며, 특정 옵션의 라벨을 가져옵니다.