Looking to hire someone to help you implement Bryntum products? Or are you a consultant who want to offer your services? This is the forum for you.


Post by renangi100 »

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


Post by alex.l »

Hi Madhu,

Please clarify your question, it os not clear what do you want to achieve. Thank you!

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post Reply