我使用的是聚合物0.5.5,这是我的代码:
<paper-tabs id="tabs" selected="0" selectedindex="0" id="paper-tabs" >
<paper-tab id="kids-tab" active>Kids</paper-tab>
<paper-tab id="raspberry-tab">Toony</paper-tab>
<paper-tab id="store-tab">Store</paper-tab>
<paper-tab id="schedule-tab">Schedule</paper-tab>
<paper-menu-button id="menuBtn" noink>
<paper-icon-button icon="more-vert" noink></paper-icon-button>
<paper-dropdown class="dropdown" halign="right">
<core-menu class="menu">
<paper-item>Settings</paper-item>
<paper-item>Help</paper-item>
<paper-item>Feedback</paper-item>
</core-menu>
</paper-dropdown>
</paper-menu-button>
下拉列表不起作用。我导入了所有必需的文件,但问题仍然存在
答案 0 :(得分:1)
如果您确定您的进口,可以尝试以下方法吗?
<paper-dropdown-menu label="drop down btn">
<paper-dropdown class="dropdown" halign="right">
<core-menu class="menu">
<paper-item>Settings</paper-item>
<paper-item>Help</paper-item>
<paper-item>Feedback</paper-item>
</core-menu>
</paper-dropdown>
</paper-dropdown-menu>