javascript - creating and destroying shieldUI widgets -


i coming different development background little jquery and/or shieldui knowledge. can please shortly explain how remove/destroy shieldui components or widgets? don't see special widget method therefore assume done jquery. destroying mean removing down (including) markup.

also, happenes widget when calling hide()? see markup somehow stripped down (removed), wrappers remain. safe call widget setup same "id" ? overwrite? cause object orhpans?

as see missing basic "how works". quick learner please, few basic pointers do. thank :)

edit: found destroy widget method under "swidget()"...what swidget?

swidget() gives reference component instance, through can access methods , properties, such height, width, refresh(), destroy(), etc.

further, respect question @ hand, regarding destroy method , approach - ideas is, whenever need refresh data on component, can recreate it, rather calling method such rebind. demonstrated in following demo: http://demos.shieldui.com/web/rangebar-chart/related-charts


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -