Hi I want to add hours only , i dont want to add event only hours for the staff for the day
beforeTaskEdit({ taskRecord, taskElement }) {
// Show custom editor here!
const editor = new bryntum.Popup({
forElement : taskElement,
closeAction : 'destroy',
items : {
name : {
type : 'textfield',
label : 'Hours',
value : taskRecord.effortPerDay
},
save : {
type : 'button',
text : 'Save',
color : 'b-green',
onClick : () => {
taskRecord.effortPerDay = editor.widgetMap.effortPerDay.value;
editor.close();
}
}
}
});
// Prevent built-in editor
return false;
}
}, Thanks
Madhu