简体   繁体   English

PolymerJS:在纸张标签上触发点击事件

[英]PolymerJS: Firing tap event on paper-tabs

I would like to do something like this 我想做这样的事情

window.menuTab.$.paper_tabs.children[0].click()

or 要么

window.menuTab.$.paper_tabs.children[0].tap

where [0] is the first tab. [0]是第一个标签。 Is theres any way I can achieve that? 有什么办法可以实现?

I found the workaround to change tab by using this : 我发现使用此方法来更改选项卡:

window.menuTab.$.paper_tabs.selectIndex(2)

where 2 is tab number 3 because it started from 0. 其中2是制表符编号3,因为它从0开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM