SMARTGWT - SectionStackSection - deleting an Item from the Section possible?

半城伤御伤魂 提交于 2019-12-11 10:34:25

问题


im using SmartGWT 4. I have an SectionStack with some SectionsStackSections in it. Now i added some DynamicForms with TextItems, Checkboxes etc. to the a Section. I also added an delete button for each Dynamic Form What I want now is, when i click on the delete button the DynamicForm should be deleted from the Section

but.. I can't find any delete function in a SectionStackSection there is a Function for the DynamicForms called "removeFromParent" but it doesn't seem to work..

Does anyone got some ideas? :-) thank you


回答1:


Simply call below line

dynamicForm.getElement().removeFromParent();


来源:https://stackoverflow.com/questions/22896848/smartgwt-sectionstacksection-deleting-an-item-from-the-section-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!