|
2 | 2 | title: Files |
3 | 3 | minver: 0.12.0 |
4 | 4 | also: |
5 | | - components/files/test.html: Testing - Files |
| 5 | + components/files/test-file-selectors.html: Testing - File Selectors |
| 6 | + components/files/test-file-tiles.html: Testing - File Tiles |
6 | 7 | components/Icons: Icons |
| 8 | + elements/hx-file-input: <hx-file-input> |
7 | 9 | elements/hx-file-tile: <hx-file-tile> |
8 | 10 | --- |
9 | 11 | {% extends 'component.njk' %} |
10 | 12 | {% block content %} |
11 | 13 | <section> |
12 | | - <h2 id="basic-file-tile">Basic File Tile</h2> |
| 14 | + <h2 id="file-selector">File Selector</h2> |
| 15 | + <p class="hxSubBody">Added: v0.13.0</p> |
| 16 | + <div class="example" id="vue-fileInputDemo" v-cloak> |
| 17 | + <header> |
| 18 | + <form class="beta-hxForm"> |
| 19 | + <fieldset> |
| 20 | + <legend>Variant</legend> |
| 21 | + <label v-for="_variant in variants"> |
| 22 | + <input |
| 23 | + :value="_variant" |
| 24 | + name="variant" |
| 25 | + type="radio" |
| 26 | + v-model="variant" |
| 27 | + /> |
| 28 | + <span v-text="_variant.label"></span> |
| 29 | + <em class="hxSubBody" v-if="_variant.default">(default)</em> |
| 30 | + </label> |
| 31 | + </fieldset> |
| 32 | + <p> |
| 33 | + <label for="inputIcon">Icon</label> |
| 34 | + <input id="inputIcon" class="hxTextCtrl" v-model="icon" /> |
| 35 | + </p> |
| 36 | + <p> |
| 37 | + <label for="inputLabel">Label</label> |
| 38 | + <input id="inputLabel" class="hxTextCtrl" v-model="label" /> |
| 39 | + </p> |
| 40 | + </form> |
| 41 | + </header> |
| 42 | + <div> |
| 43 | + <hx-file-input |
| 44 | + :class="classes" |
| 45 | + :icon="icon" |
| 46 | + :label="label"> |
| 47 | + <input type="file" /> |
| 48 | + </hx-file-input> |
| 49 | + </div> |
| 50 | + <footer> |
| 51 | + <template v-if="classes === ''"> |
| 52 | + {% code 'html' %}{% raw %} |
| 53 | + <hx-file-input |
| 54 | + icon="{{icon}}" |
| 55 | + label="{{label}}"> |
| 56 | + <input type="file" /> |
| 57 | + </hx-file-input>{% endraw %} |
| 58 | + {% endcode %} |
| 59 | + </template> |
| 60 | + <template v-else> |
| 61 | + {% code 'html' %}{% raw %} |
| 62 | + <hx-file-input |
| 63 | + class="{{classes}}" |
| 64 | + icon="{{icon}}" |
| 65 | + label="{{label}}"> |
| 66 | + <input type="file" /> |
| 67 | + </hx-file-input>{% endraw %} |
| 68 | + {% endcode %} |
| 69 | + </template> |
| 70 | + </footer> |
| 71 | + </div> |
| 72 | + </section> |
| 73 | + |
| 74 | + <section> |
| 75 | + <h2 id="file-tile">File Tile</h2> |
| 76 | + <p class="hxSubBody">Added: v0.12.0</p> |
13 | 77 | <div class="example" id="vue-fileTileDemo" v-cloak> |
14 | 78 | <header> |
15 | 79 | <form class="beta-hxForm"> |
|
0 commit comments