forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic-element.html
More file actions
executable file
·44 lines (41 loc) · 1.03 KB
/
basic-element.html
File metadata and controls
executable file
·44 lines (41 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<link rel="import" href="/samples/components/basic-element.html">
<div class="row-fluid">
<div class="span8">
<!-- Source tabs -->
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#element" data-toggle="tab">my-element.html</a></li>
<li><a href="#index" data-toggle="tab">index.html</a></li>
</ul>
<!-- Source tab content -->
<div class="tab-content">
<div class="tab-pane active" id="element">
{% highlight html %}
{% include_external samples/components/basic-element.html %}
{% endhighlight %}
</div>
<div class="tab-pane" id="index">
{% highlight html %}
<!DOCTYPE html>
<html>
<head>
<script src="/webcomponentsjs/webcomponents.js"></script>
<!-- Load custom element -->
<link rel="import" href="my-element.html">
</head>
<body>
<!-- Instantiate custom element -->
<my-element></my-element>
</body>
</html>
{% endhighlight %}
</div>
</div>
</div>
<!-- Running sample -->
<div class="span4">
<h5>Result</h5>
<div class="well">
<my-element></my-element>
</div>
</div>
</div>