Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
    <script src="https://www.polymer-project.org/components/webcomponentsjs/webcomponents.js"></script>
    <link rel="import" href="http://www.polymer-project.org/components/paper-tabs/paper-tabs.html">
    <link rel="import" href="http://www.polymer-project.org/components/paper-tabs/paper-tab.html">
</head>
<body>
    <polymer-element name="code-file-set" attributes="tabs">
        <template>
            <paper-tabs style="background-color:limegreen" selected="0">
                <template repeat="{{tab in tabs}}">
                    <paper-tab>
                        <a href="{{tab.link}}" style="color:black">{{tab.tabTitle}}</a>
                    </paper-tab>
                </template>
            </paper-tabs>
        </template>
        <script>
            Polymer('code-file-set', {
                ready: function () {
                    this.tabs = [];
                    for (var i = 0; i <= 3; i++) {
                        this.tabs.push({ link: '#', tabTitle: 'title ' + i });
                    }
                },
            });
        </script>
    </polymer-element>
    <code-file-set></code-file-set>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
justinxinliupro
0viewers