forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtk-element-public-access.html
More file actions
executable file
·53 lines (48 loc) · 1.46 KB
/
tk-element-public-access.html
File metadata and controls
executable file
·53 lines (48 loc) · 1.46 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
45
46
47
48
49
50
51
52
<link rel="import" href="/samples/components/tk-element-public-access.html">
<div class="row-fluid">
<div class="span8">
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#element11" data-toggle="tab">tk-element-public-access.html</a></li>
<li><a href="#index11" data-toggle="tab">index.html</a></li>
</ul>
<!-- Tab contents -->
<!-- IDs for each div must match the href value in the tab control above -->
<div class="tab-content">
<div class="tab-pane active" id="element11">
{% highlight html %}
{% include_external samples/components/tk-element-public-access.html %}
{% endhighlight %}
</div>
<div class="tab-pane" id="index11">
{% highlight html %}
<!DOCTYPE html>
<html>
<head>
<script src="webcomponents.js"></script>
<link rel="import" href="tk-element-public-access.html">
</head>
<body>
<div class="well">
<!-- Make new component and specify values for new public properties. -->
<tk-element-public-access owner="Scott" color="blue">
</tk-element-public-access>
<script>
window.addEventListener("polymer-ready", function() {
console.log("tk-element-public-access's owner is: " + document.querySelector("tk-element-public-access").owner);
});
</script>
</div>
</body>
</html>
{% endhighlight %}
</div>
</div>
</div>
<div class="span4">
<!-- Running sample -->
<h5>Result</h5>
<div class="well">
<tk-element-public-access></tk-element-public-access>
</div>
</div>
</div>