forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Polymer#431 from arthurevans/databinding-updates
Databinding updates
- Loading branch information
Showing
8 changed files
with
137 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- <link rel="import" href="/elements/demo-tabs.html"> --> | ||
|
||
<demo-tabs selected="0" bottom> | ||
<demo-tab heading="index.html"> | ||
{% highlight html %} | ||
{% include_external samples/databinding/auto-binding.html doc-sample %} | ||
{% endhighlight %} | ||
</demo-tab> | ||
<div class="result"> | ||
{% include_external samples/databinding/auto-binding.html runnable-sample %} | ||
</div> | ||
</demo-tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- [START doc-sample] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="import" href="/components/polymer/polymer.html"> | ||
</head> | ||
<body> | ||
<!-- [START runnable-sample] --> | ||
<!-- render data set --> | ||
<template id="auto-bind-demo" is="auto-binding" repeat="{{quotes}}"> | ||
<div on-tap="{{quoteClicked}}"> | ||
<h3>{{quote}}</h3> | ||
- <em>{{attribution}}</em> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
var t = document.querySelector('#auto-bind-demo'); | ||
t.quoteClicked = function() { | ||
alert('Quote clicked!'); | ||
}; | ||
t.quotes = [{ | ||
attribution: 'Plautus', | ||
quote: 'Let deeds match words.' | ||
}, { | ||
attribution: 'Groucho Marx', | ||
quote: 'Time flies like an arrow. Fruit flies like a banana.' | ||
}]; | ||
</script> | ||
<!-- [END runnable-sample] --> | ||
</body> | ||
</html> | ||
<!-- [END doc-sample] --> |