Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit c7dd0da

Browse files
committed
Add table inputs demo
1 parent 14a01f9 commit c7dd0da

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

kitchen-sink/src/pages/data-table.vue

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,70 @@
276276
</tbody>
277277
</table>
278278
</div>
279+
<f7-block-title>With inputs</f7-block-title>
280+
<div class="block-header">Such tables are widely used in admin interfaces for filtering or search data</div>
281+
<div class="card data-table">
282+
<table>
283+
<thead>
284+
<tr>
285+
<th class="input-cell">
286+
<span class="table-head-label">ID</span>
287+
<div class="input" style="width: 50px">
288+
<input type="number" placeholder="Filter">
289+
</div>
290+
</th>
291+
<th class="input-cell">
292+
<span class="table-head-label">Name</span>
293+
<div class="input">
294+
<input type="text" placeholder="Filter">
295+
</div>
296+
</th>
297+
<th class="input-cell">
298+
<span class="table-head-label">Email</span>
299+
<div class="input">
300+
<input type="email" placeholder="Filter">
301+
</div>
302+
</th>
303+
<th class="input-cell">
304+
<span class="table-head-label">Gender</span>
305+
<div class="input input-dropdown">
306+
<select>
307+
<option value="All">All</option>
308+
<option value="Male">Male</option>
309+
<option value="Female">Female</option>
310+
</select>
311+
</div>
312+
</th>
313+
</tr>
314+
</thead>
315+
<tbody>
316+
<tr>
317+
<td>1</td>
318+
<td>John Doe</td>
319+
<td>john@doe.com</td>
320+
<td>Male</td>
321+
</tr>
322+
<tr>
323+
<td>2</td>
324+
<td>Jane Doe</td>
325+
<td>jane@doe.com</td>
326+
<td>Female</td>
327+
</tr>
328+
<tr>
329+
<td>3</td>
330+
<td>Vladimir Kharlampidi</td>
331+
<td>vladimir@google.com</td>
332+
<td>Male</td>
333+
</tr>
334+
<tr>
335+
<td>4</td>
336+
<td>Jennifer Doe</td>
337+
<td>jennifer@doe.com</td>
338+
<td>Female</td>
339+
</tr>
340+
</tbody>
341+
</table>
342+
</div>
279343
<f7-block-title>Within card with title and actions</f7-block-title>
280344
<div class="data-table data-table-init card">
281345
<div class="card-header">

0 commit comments

Comments
 (0)