-
Notifications
You must be signed in to change notification settings - Fork 24
/
text-area-3.html
48 lines (42 loc) · 1.33 KB
/
text-area-3.html
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
<!DOCTYPE html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="../../../../webcomponentsjs/webcomponents-loader.js"></script>
<script>
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo';
document.write(`<link rel="import" href="../../../theme/${theme}/vaadin-text-area.html">`);
window.addEventListener('WebComponentsReady', function() {
setTimeout(function() {
window.ShadyDOM && window.ShadyDOM.flush(); // Force DOM composition
window.webComponentsAreReady = true; // Checked in gemini before capture callback
});
});
</script>
<link href="../common.html" rel="import">
</head>
<body>
<custom-style>
<style>
fieldset {
font-family: sans-serif;
font-size: 16px;
width: 550px;
border: solid 1px grey;
}
</style>
</custom-style>
<form>
<fieldset id="text-area">
label and value: <vaadin-text-area label="Foo" value="Bar"></vaadin-text-area>
<p>
prefix and suffix:
<vaadin-text-area label="Foo" value="Bar">
<span slot="prefix">prefix</span>
<span slot="suffix">suffix</span>
</vaadin-text-area>
<p>
long: <vaadin-text-area label="Foo" value="Bar" style="width: 300px;"></vaadin-text-area>
</fieldset>
</form>
</body>