-
Notifications
You must be signed in to change notification settings - Fork 24
/
text-area-1.html
46 lines (40 loc) · 1.26 KB
/
text-area-1.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
<!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">
default: <vaadin-text-area></vaadin-text-area>
<p>
value: <vaadin-text-area value="Go Vaadin"></vaadin-text-area>
<p>
focused: <vaadin-text-area autofocus class="hidden-caret"></vaadin-text-area>
<p>
readonly: <vaadin-text-area readonly value="Go Vaadin"></vaadin-text-area>
</fieldset>
</form>
</body>