-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext-extractor-demo.html
More file actions
43 lines (34 loc) · 972 Bytes
/
text-extractor-demo.html
File metadata and controls
43 lines (34 loc) · 972 Bytes
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
<!--
This sample element wants to convert text *contained* by element instances into
a text value that can be rendered as, e.g., the value attribute of an input
element. A normal use of <content> won't work, because there's no syntax for
directly binding an attribute (on an input element, say) to text distributed to
a <content> node. The basic-text-extractor component performs that conversion.
-->
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="basic-text-extractor.html">
<dom-module id="text-extractor-demo">
<style>
input {
font-family: inherit;
font-size: inherit;
width: 100%;
}
</style>
<template>
<basic-text-extractor value="{{extractedText}}">
<content></content>
</basic-text-extractor>
<input type="text" value="{{extractedText}}">
</template>
</dom-module>
<script>
Polymer({
is: 'text-extractor-demo',
properites: {
value: {
type: String
}
}
});
</script>