Chand window head dunmicaly

Hi team,

I wish change a window head dinamicaly :

i tried this but it does not work :
https://docs.webix.com/api__ui.window_gethead.html

https://snippet.webix.com/vj2hrp31

Could you help me please ?

Hello, @XavierDP

The thing is that show() method returns undefined. The solution is to divide operations:

  • an assignment of a widget into a variable
  • call the show() method
    Here is the snippet: Code Snippet

As a side note, please pay attention that if you use window close property, getHead() will return a layout instead of a simple template

Hi @AlenaLisava

Thank you very much