Page 1 of 1

[ANGULAR] how to dynamically change taskEdit main title

Posted: Wed May 31, 2023 1:32 pm
by naveen12

In gantt feature taskEdit inside editorConfig that has title property. It shows 'Information' by default how to change that title when ever I open taskEditer in gantt. pls provide some example


Re: [ANGULAR] how to dynamically change taskEdit main title

Posted: Wed May 31, 2023 2:01 pm
by tasnim

Hi,

You could listen to this https://bryntum.com/products/gantt/docs/api/Gantt/feature/TaskEdit#event-beforeTaskEditShow listener
And change the title of the editor

new Gantt({
	listeners : {
		beforeTaskEditShow({ editor }) {
			editor.title = "Task Editor"
		}
	}
});

Re: [ANGULAR] how to dynamically change taskEdit main title

Posted: Wed May 31, 2023 2:18 pm
by naveen12

thank you its working