Page 1 of 1

appendTo value has changed from a string to an element

Posted: Thu Feb 02, 2023 12:10 pm
by natalija

Hello!

I am doing a bryntum version update (a bit delayed) from 5.02 to 5.2.9 and I noticed that Sheduler appendTo value has changed from a string to an element. Is this how it's supposed to be? I couldn't find release notes about this change.

Thank you!


Re: appendTo value has changed from a string to an element

Posted: Thu Feb 02, 2023 12:55 pm
by mats

What's the context here, you mean reading the value of 'appendTo' after creating a Widget?


Re: appendTo value has changed from a string to an element

Posted: Thu Feb 02, 2023 1:29 pm
by natalija

We are using appendTo value to get the element by ID but now after updating appendTo value is not a string.


Re: appendTo value has changed from a string to an element

Posted: Thu Feb 02, 2023 1:39 pm
by mats

If you want the outer HTML element of a Widget, use this instead:

container.element