panel drag and drop is not working in extjs 4.1

后端 未结 3 526
深忆病人
深忆病人 2021-01-15 02:26

This code is working in Extjs 4.0.2a but when converted to 4.1 it no longer works and gives an error

Uncaught TypeError: Cannot call method \'query\' of undef

3条回答
  •  温柔的废话
    2021-01-15 02:32

    I was able to get it working in 4.1: you have to add quotes around the id of the renderTo element, like:

    renderTo : 'divtag',
    

    Without quotes it was looking for an undefined variable named divtag.

    Once I ran that I got no errors, and then I just did panel.show() to render it.

提交回复
热议问题