|
1 | 1 | <section class="component"> |
2 | | - <h3 id="listview">ListView</h3> |
3 | | - <div> |
4 | | - <blockquote> |
5 | | - With a list view, users can view and interact with a collection of data objects, using either single |
6 | | - selection or multiple selection. |
7 | | - <footer>— <a href="https://learn.microsoft.com/en-us/windows/win32/uxguide/ctrl-list-views">Microsoft |
8 | | - Windows |
9 | | - User Experience - List View</a></footer> |
10 | | - </blockquote> |
| 2 | + <h3 id="listview">ListView (table)</h3> |
| 3 | + <div> |
| 4 | + <blockquote> |
| 5 | + With a list view, users can view and interact with a collection of data |
| 6 | + objects, using either single selection or multiple selection. |
| 7 | + <footer> |
| 8 | + — |
| 9 | + <a |
| 10 | + href="https://learn.microsoft.com/en-us/windows/win32/uxguide/ctrl-list-views" |
| 11 | + >Microsoft Windows User Experience - List View</a |
| 12 | + > |
| 13 | + </footer> |
| 14 | + </blockquote> |
11 | 15 |
|
12 | | - <p>Currently, the ListView is only implemented as the Details view, which styles tables.</p> |
| 16 | + <p> |
| 17 | + Currently, the ListView is only implemented as the Details view, which |
| 18 | + styles tables. |
| 19 | + </p> |
13 | 20 |
|
14 | | - <%- example(` |
15 | | - <table> |
16 | | - <thead> |
17 | | - <tr> |
18 | | - <th>Name</th> |
19 | | - <th>Date Taken</th> |
20 | | - <th class="highlighted indicator">Tags</th> |
21 | | - <th>Size</th> |
22 | | - <th>Rating</th> |
23 | | - </tr> |
24 | | - </thead> |
25 | | - <tbody> |
26 | | - <tr> |
27 | | - <td>Toco Toucan</td> |
28 | | - <td>6/24/2005 12:22 PM</td> |
29 | | - <td>Sample; Wildlife</td> |
30 | | - <td>113 KB</td> |
31 | | - <td>* * * * *</td> |
32 | | - </tr> |
33 | | - <tr class="highlighted"> |
34 | | - <td>Dock</td> |
35 | | - <td>6/22/2005 8:17 PM</td> |
36 | | - <td>Sample; Ocean</td> |
37 | | - <td>310 KB</td> |
38 | | - <td>* * * * *</td> |
39 | | - </tr> |
40 | | - <tr> |
41 | | - <td>Autumn Leaves</td> |
42 | | - <td>11/4/2005 6:12 PM</td> |
43 | | - <td>Sample; Landscape</td> |
44 | | - <td>270 KB</td> |
45 | | - <td>* * * * *</td> |
46 | | - </tr> |
47 | | - </tbody> |
48 | | - </table> |
49 | | - `) %> |
| 21 | + <%- example(` |
| 22 | + <table> |
| 23 | + <thead> |
| 24 | + <tr> |
| 25 | + <th>Name</th> |
| 26 | + <th>Date Taken</th> |
| 27 | + <th class="highlighted indicator">Tags</th> |
| 28 | + <th>Size</th> |
| 29 | + <th>Rating</th> |
| 30 | + </tr> |
| 31 | + </thead> |
| 32 | + <tbody> |
| 33 | + <tr> |
| 34 | + <td>Toco Toucan</td> |
| 35 | + <td>6/24/2005 12:22 PM</td> |
| 36 | + <td>Sample; Wildlife</td> |
| 37 | + <td>113 KB</td> |
| 38 | + <td>* * * * *</td> |
| 39 | + </tr> |
| 40 | + <tr class="highlighted"> |
| 41 | + <td>Dock</td> |
| 42 | + <td>6/22/2005 8:17 PM</td> |
| 43 | + <td>Sample; Ocean</td> |
| 44 | + <td>310 KB</td> |
| 45 | + <td>* * * * *</td> |
| 46 | + </tr> |
| 47 | + <tr> |
| 48 | + <td>Autumn Leaves</td> |
| 49 | + <td>11/4/2005 6:12 PM</td> |
| 50 | + <td>Sample; Landscape</td> |
| 51 | + <td>270 KB</td> |
| 52 | + <td>* * * * *</td> |
| 53 | + </tr> |
| 54 | + </tbody> |
| 55 | + </table> |
| 56 | + `) %> |
50 | 57 |
|
51 | | - <p>Here's another example showcasing advanced usage, for example:</p> |
52 | | - <ul> |
53 | | - <li>The handling of long text (using the <code>width</code> property of the table to limit the width)</li> |
54 | | - <li>Using the <code>has-shadow</code> class to add a shadow to the table</li> |
55 | | - <li>Flipping the column header sort indicator by adding the <code>up</code> class</li> |
56 | | - <li>Changing text alignment using the <code>text-align</code> property</li> |
57 | | - <li>The <code>highlighted</code> column header style without sort indicator (I didn't want to add another table just for that)</li> |
58 | | - </ul> |
59 | | - <%- example(` |
60 | | - <table class="has-shadow" style="width: 460px;"> |
61 | | - <thead> |
62 | | - <tr> |
63 | | - <th>Name</th> |
64 | | - <th>Original Location</th> |
65 | | - <th class="highlighted">Date deleted</th> |
66 | | - <th>Size</th> |
67 | | - <th class="highlighted indicator up">Type</th> |
68 | | - </tr> |
69 | | - </thead> |
70 | | - <tbody> |
71 | | - <tr> |
72 | | - <td>contents_files</td> |
73 | | - <td>D:\\Users\\user\\Documents\\contents_files</td> |
74 | | - <td>3/29/2007 12:00 AM</td> |
75 | | - <td style="text-align: right;">4 KB</td> |
76 | | - <td>File Folder</td> |
77 | | - </tr> |
78 | | - <tr> |
79 | | - <td>Windows Vista User Experience Guidelines</td> |
80 | | - <td>D:\\Users\\user\\Documents\\Windows Vista User Experience Guidelines</td> |
81 | | - <td>3/29/2007 12:00 AM</td> |
82 | | - <td style="text-align: right;">0 KB</td> |
83 | | - <td>File Folder</td> |
84 | | - </tr> |
85 | | - <tr> |
86 | | - <td>AutoRecovery save of Document.asd</td> |
87 | | - <td>D:\\Users\\user\\Documents\\AutoRecovery save of Document.asd</td> |
88 | | - <td>3/23/2007 12:00 AM</td> |
89 | | - <td style="text-align: right;">27 KB</td> |
90 | | - <td>ASD File</td> |
91 | | - </tr> |
92 | | - <tr> |
93 | | - <td>AutoRecovery save of Tree Views.asd</td> |
94 | | - <td>D:\\Users\\user\\Documents\\AutoRecovery save of Tree Views.asd</td> |
95 | | - <td>3/13/2007 12:00 AM</td> |
96 | | - <td style="text-align: right;">693 KB</td> |
97 | | - <td>ASD File</td> |
98 | | - </tr> |
99 | | - <tr> |
100 | | - <td>contents</td> |
101 | | - <td>D:\\Users\\user\\Documents\\contents</td> |
102 | | - <td>3/29/2007 12:00 AM</td> |
103 | | - <td style="text-align: right;">2 KB</td> |
104 | | - <td>HTML Document</td> |
105 | | - </tr> |
106 | | - </tbody> |
107 | | - </table> |
108 | | - `) %> |
109 | | - </div> |
| 58 | + <p>Here's another example showcasing advanced usage, for example:</p> |
| 59 | + <ul> |
| 60 | + <li> |
| 61 | + The handling of long text (using the <code>width</code> property of the |
| 62 | + table to limit the width) |
| 63 | + </li> |
| 64 | + <li> |
| 65 | + Using the <code>has-shadow</code> class to add a shadow to the table |
| 66 | + </li> |
| 67 | + <li> |
| 68 | + Flipping the column header sort indicator by adding the |
| 69 | + <code>up</code> class |
| 70 | + </li> |
| 71 | + <li> |
| 72 | + Changing text alignment using the <code>text-align</code> property |
| 73 | + </li> |
| 74 | + <li> |
| 75 | + The <code>highlighted</code> column header style without sort indicator |
| 76 | + (I didn't want to add another table just for that) |
| 77 | + </li> |
| 78 | + </ul> |
| 79 | + <%- example(` |
| 80 | + <table class="has-shadow" style="width: 460px"> |
| 81 | + <thead> |
| 82 | + <tr> |
| 83 | + <th>Name</th> |
| 84 | + <th>Original Location</th> |
| 85 | + <th class="highlighted">Date deleted</th> |
| 86 | + <th>Size</th> |
| 87 | + <th class="highlighted indicator up">Type</th> |
| 88 | + </tr> |
| 89 | + </thead> |
| 90 | + <tbody> |
| 91 | + <tr> |
| 92 | + <td>contents_files</td> |
| 93 | + <td>D:\\Users\\user\\Documents\\contents_files</td> |
| 94 | + <td>3/29/2007 12:00 AM</td> |
| 95 | + <td style="text-align: right">4 KB</td> |
| 96 | + <td>File Folder</td> |
| 97 | + </tr> |
| 98 | + <tr> |
| 99 | + <td>Windows Vista User Experience Guidelines</td> |
| 100 | + <td> |
| 101 | + D:\\Users\\user\\Documents\\Windows Vista User Experience Guidelines |
| 102 | + </td> |
| 103 | + <td>3/29/2007 12:00 AM</td> |
| 104 | + <td style="text-align: right">0 KB</td> |
| 105 | + <td>File Folder</td> |
| 106 | + </tr> |
| 107 | + <tr> |
| 108 | + <td>AutoRecovery save of Document.asd</td> |
| 109 | + <td>D:\\Users\\user\\Documents\\AutoRecovery save of Document.asd</td> |
| 110 | + <td>3/23/2007 12:00 AM</td> |
| 111 | + <td style="text-align: right">27 KB</td> |
| 112 | + <td>ASD File</td> |
| 113 | + </tr> |
| 114 | + <tr> |
| 115 | + <td>AutoRecovery save of Tree Views.asd</td> |
| 116 | + <td> |
| 117 | + D:\\Users\\user\\Documents\\AutoRecovery save of Tree Views.asd |
| 118 | + </td> |
| 119 | + <td>3/13/2007 12:00 AM</td> |
| 120 | + <td style="text-align: right">693 KB</td> |
| 121 | + <td>ASD File</td> |
| 122 | + </tr> |
| 123 | + <tr> |
| 124 | + <td>contents</td> |
| 125 | + <td>D:\\Users\\user\\Documents\\contents</td> |
| 126 | + <td>3/29/2007 12:00 AM</td> |
| 127 | + <td style="text-align: right">2 KB</td> |
| 128 | + <td>HTML Document</td> |
| 129 | + </tr> |
| 130 | + </tbody> |
| 131 | + </table> |
| 132 | + `) %> |
| 133 | + </div> |
110 | 134 | </section> |
0 commit comments