-
Notifications
You must be signed in to change notification settings - Fork 24
/
password-field.html
30 lines (25 loc) · 966 Bytes
/
password-field.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
<!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-password-field.html">`);
window.addEventListener('WebComponentsReady', function() {
customElements.whenDefined('vaadin-password-field').then(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>
<fieldset id="password-field">
<p>
<vaadin-password-field placeholder="Password"></vaadin-password-field>
<p>
<vaadin-password-field value="Password"></vaadin-password-field>
</fieldset>
</body>