|
9 | 9 | <template>
|
10 | 10 | <page-container centered :title="$t('pages.chips.title')">
|
11 | 11 | <div class="page-container-section">
|
12 |
| - <p>Chips represent complex entities in small blocks, such as a contact. They can be used as a way for a user create arbitrary items, like categories or tags.</p> |
| 12 | + <p>Chips represent complex entities in small blocks, such as a contact. They can be used as a way for a user to create arbitrary items, like categories or tags.</p> |
13 | 13 | </div>
|
14 | 14 |
|
15 | 15 | <div class="page-container-section">
|
16 | 16 | <h2>Standalone Chip</h2>
|
17 | 17 |
|
18 |
| - <p>A chip can be used standalone, without any connection with another chip. It can be used to be like a badge or a category of a entity in your application. You can specify if your chip can be deletable and clickable:</p> |
| 18 | + <p>A chip can be used as standalone, without any connection with another chip. It can be used like a badge or a category of an entity in your application. You can specify if your chip can be deletable and clickable:</p> |
19 | 19 | <code-example title="Single" :component="examples['single-chip']" />
|
20 | 20 |
|
21 | 21 | <api-item title="API - md-chip">
|
|
29 | 29 | <div class="page-container-section">
|
30 | 30 | <h2>Editable model</h2>
|
31 | 31 |
|
32 |
| - <p>Sometimes we need to edit the set of items on screen, for example. When editing tags, the user may need to remove/add tags. In this case you can use the editable chips, that is the default behaviour:</p> |
| 32 | + <p>Sometimes we need to edit the set of items on screen, for example, when editing tags, the user may need to remove/add tags. In this case you can use the editable chips, that is the default behaviour:</p> |
33 | 33 | <code-example title="Editable" :component="examples['editable']" />
|
34 | 34 | </div>
|
35 | 35 |
|
36 | 36 | <div class="page-container-section">
|
37 | 37 | <h2>Readonly</h2>
|
38 | 38 |
|
39 |
| - <p>Let's think in a entity that have tags. Sometimes you might need to show all of them in a single row, but not enable the user to edit them. You can achieve that using the <code>md-chips</code> component, with a static option:</p> |
| 39 | + <p>Let's think in an entity that have tags. Sometimes you might need to show all of them in a single row, but not allow the user to edit them. You can achieve that using the <code>md-chips</code> component, with a static option:</p> |
40 | 40 | <code-example title="Static" :component="examples['static']" />
|
41 | 41 | </div>
|
42 | 42 |
|
43 | 43 | <div class="page-container-section">
|
44 | 44 | <h2>Custom Template</h2>
|
45 | 45 |
|
46 |
| - <p>Sometimes we need to show more information about a chip, so we want to have a custom HTML structure for the chip itself. To create that scenario we can use the template scope. In this case all you have to do is to create a slot with your custom template and you're good to go. Take a loot at this example:</p> |
| 46 | + <p>Sometimes we need to show more information about a chip, so we want to have a custom HTML structure for the chip itself. To create that scenario we can use the template scope. In this case all you have to do is to create a slot with your custom template and you're good to go. Take a look at this example:</p> |
47 | 47 | <code-example title="Scoped Slot" :component="examples['chip-custom-template']" />
|
48 | 48 | </div>
|
49 | 49 |
|
50 | 50 | <div class="page-container-section">
|
51 | 51 | <h2>Duplicated Chip</h2>
|
52 | 52 |
|
53 |
| - <p>Chips would reject insertion while a chip was duplicated. You could customize feedback style of the duplicated chip:</p> |
| 53 | + <p>Chips would reject insertion if a chip is duplicated. You can customize feedback style of the duplicated chip:</p> |
54 | 54 | <code-example title="Duplicated Feedback" :component="examples['duplicated-feedback']" />
|
55 | 55 | </div>
|
56 | 56 |
|
|
0 commit comments