I have a content pane (B) that is created when I click a button which is inside another content pane( A) in tab container.
In B I have used closeable to true and also on close function .now when I close B it is working fine but my requirement is that if I click button in A , B should be created again how I can do this .I have tried by assigning null to content pane variable in on close function so that new content pane is created again but giving error can not read property of null owner document
I think your problem is inside
showLayerListFunction
,See below example in which your can recreate tab after its deletion