How to remove an item from a paper-listbox?

白昼怎懂夜的黑 提交于 2019-12-25 07:59:37

问题


I can add an item to a paper-listbox with

Polymer.dom($['mylistbox']).append(paperItem);

However I'm having trouble deleting it from the list afterwards. I tried:

paperItem.remove();

That initially makes it dissapear, but it appears again after selecting another item in the list. How do I remove a paper-item from a listbox?


回答1:


Polymer.dom($['mylistbox']).removeChild(paperItem);


来源:https://stackoverflow.com/questions/39053131/how-to-remove-an-item-from-a-paper-listbox

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