|
11 | 11 | <link href="../lib/metro.css" rel="stylesheet"> |
12 | 12 |
|
13 | 13 | <title>Test Input - Metro UI :: Popular HTML, CSS and JS library</title> |
14 | | - <style> |
15 | | - .example { |
16 | | - width: 300px; |
17 | | - margin: 10px; |
18 | | - } |
19 | | - </style> |
20 | 14 | </head> |
21 | | -<body class="cloak"> |
22 | | -<nav data-role="appbar"> |
23 | | - <span class="app-bar-item">Inputs</span> |
24 | | - <div class="app-bar-item no-hover"> |
25 | | - <input type="checkbox" data-role="theme-switcher" data-state="light"/> |
| 15 | +<body class="cloak h-100-vh"> |
| 16 | +<nav data-role="appbar" class="border-bottom bd-default" data-expand="true"> |
| 17 | + <div class="app-bar-item-static no-hover"> |
| 18 | + <div class="text-leader">Component Name</div> |
| 19 | + </div> |
| 20 | + <div class="app-bar-item-static no-hover"> |
| 21 | + <input type="checkbox" data-role="theme-switcher"/> |
26 | 22 | </div> |
27 | 23 | </nav> |
28 | | -<div class="container"> |
29 | | - <h1>Input test page</h1> |
30 | | - <div class="row"> |
31 | | -<!-- <div class="example">--> |
32 | | -<!-- <input type="text" placeholder="Enter your name" />--> |
33 | | -<!-- </div>--> |
34 | | - |
35 | | -<!-- <div class="example">--> |
36 | | -<!-- <input type="text" placeholder="Enter your name" class="metro-input" >--> |
37 | | -<!-- </div>--> |
38 | | - |
39 | | - <div class="example"> |
40 | | - <input type="text" placeholder="Enter text..." data-role="input" data-label="Generate Password" data-random-button="true"/> |
41 | | - </div> |
42 | | - |
43 | | - <div class="example"> |
44 | | - <input id="testOptions" type="text" placeholder="Enter text..." data-role="input" data-label="Prepend and Append Options" data-prepend-options="http://,https://" data-append-options=".com,.net,.org,.org.ua"/> |
45 | | - <div class="mt-10"> |
46 | | - <button onclick="alert(Metro.getPlugin('#testOptions', 'input').val())">Get val</button> |
47 | | - <button onclick="Metro.getPlugin('#testOptions', 'input').val('https://;metroui;.org.ua')">Set val</button> |
48 | | - </div> |
49 | | - </div> |
50 | | - |
51 | | -<!-- <div class="example">--> |
52 | | -<!-- <input type="text" placeholder="Input small" data-role="input" class="input-small" data-prepend="Prepend:" data-append=".append">--> |
53 | | -<!-- </div>--> |
54 | | -<!-- <div class="example">--> |
55 | | -<!-- <input type="text" placeholder="Input normal" data-role="input" data-prepend="Prepend:" data-append=".append" data-clear-button="false">--> |
56 | | -<!-- </div>--> |
57 | | -<!-- <div class="example">--> |
58 | | -<!-- <input type="text" placeholder="Input large" data-role="input" class="input-large" data-prepend="Prepend:" data-append=".append">--> |
59 | | -<!-- </div>--> |
60 | | - |
61 | | -<!-- <div class="example">--> |
62 | | -<!-- <input type="password" placeholder="Enter password" data-role="input">--> |
63 | | -<!-- </div>--> |
64 | 24 |
|
65 | | -<!-- <div class="example">--> |
66 | | -<!-- <input type="text" placeholder="Enter search" data-role="input" data-search-button="true">--> |
67 | | -<!-- </div>--> |
68 | | - |
69 | | -<!-- <div class="example">--> |
70 | | -<!-- <input type="text" placeholder="Enter search" data-role="input" data-prepend="Prepend:">--> |
71 | | -<!-- </div>--> |
72 | | - |
73 | | -<!-- <div class="example">--> |
74 | | -<!-- <input type="text" placeholder="Enter search" data-role="input" class="pill-input input-small" data-prepend="Prepend:" data-append=".append">--> |
75 | | -<!-- <input type="text" placeholder="Enter search" data-role="input" class="pill-input" data-prepend="Prepend:" data-append=".append">--> |
76 | | -<!-- <input type="text" placeholder="Enter search" data-role="input" class="pill-input input-large" data-prepend="Prepend:" data-append=".append" data-cls-prepend="text-upper">--> |
77 | | -<!-- </div>--> |
78 | | - |
79 | | -<!-- <div class="example">--> |
80 | | -<!--<!– <input type="text" placeholder="Enter search" data-role="input" data-autocomplete-url="https://metroui.org.ua/data/autocomplete.txt">–>--> |
81 | | -<!-- </div>--> |
| 25 | +<div class="container h-100 d-flex flex-column flex-center"> |
| 26 | + <div class="example"> |
| 27 | + <input type="text" data-role="input"> |
| 28 | + </div> |
82 | 29 |
|
| 30 | + <div class="example mt-4"> |
| 31 | + <input type="text" data-role="input" data-prepend-options="http://,https://"> |
| 32 | + <input type="text" data-role="input" data-append-options="http://,https://"> |
83 | 33 | </div> |
84 | 34 | </div> |
85 | 35 |
|
|
0 commit comments