gpt4 book ai didi

polymer 1.0 : Where is a working example of to control content?

转载 作者:行者123 更新时间:2023-12-02 18:38:06 26 4
gpt4 key购买 nike

背景

问题

有人可以举个例子来说明如何<paper-tabs>可以用来控制内容的显示吗?

最佳答案

它位于 first link 的文档中:

A common usage for paper-tabs is to use it along with iron-pages to switch between different views.

<paper-tabs selected="{{selected}}">
<paper-tab>Tab 1</paper-tab>
<paper-tab>Tab 2</paper-tab>
<paper-tab>Tab 3</paper-tab>
</paper-tabs>

<iron-pages selected="{{selected}}">
<div>Page 1</div>
<div>Page 2</div>
<div>Page 3</div>
</iron-pages>

关于 polymer 1.0 : Where is a working example of <paper-tabs> to control content?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32711869/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com