|
| 1 | +<example src="./examples/RegularToolbar.vue" /> |
| 2 | +<example src="./examples/ToolbarSizes.vue" /> |
| 3 | +<example src="./examples/ContentActions.vue" /> |
| 4 | + |
| 5 | +<template> |
| 6 | + <page-container centered :title="$t('pages.content.title')"> |
| 7 | + <div class="page-container-section"> |
| 8 | + <p>Toolbar actions appear above the view affected by their actions. They may constrain their width to accommodate material passing over them.</p> |
| 9 | + </div> |
| 10 | + |
| 11 | + <div class="page-container-section"> |
| 12 | + <h2>Toolbars</h2> |
| 13 | + |
| 14 | + <code-example title="Regular Toolbars" :component="examples['regular-toolbar']" /> |
| 15 | + |
| 16 | + <api-item title="API"> |
| 17 | + <p>The following options can be applied to all buttons, even the FAB ones:</p> |
| 18 | + |
| 19 | + <api-table :headings="api.regular.classes.headings" :props="api.regular.classes.props" slot="classes" /> |
| 20 | + <api-table :headings="api.regular.props.headings" :props="api.regular.props.props" slot="props" /> |
| 21 | + </api-item> |
| 22 | + </div> |
| 23 | + |
| 24 | + <div class="page-container-section"> |
| 25 | + <h2>Different Sizes</h2> |
| 26 | + |
| 27 | + <code-example title="Sizes" :component="examples['toolbar-sizes']" /> |
| 28 | + </div> |
| 29 | + |
| 30 | + <div class="page-container-section"> |
| 31 | + <h2>Content and Actions</h2> |
| 32 | + <p>As the Toolbars are mostly used to hold actions that affects the entire application, you can create rows or sections inside it.</p> |
| 33 | + <p>Although those rows works on every toolbar, they we're created to hold contents for large toolbars. This element is represented by the <code>.md-toolbar-row</code> class. A row can also have a <code>.md-toolbar-offset</code> to add a little space on the left of it. This is commonly used inside the second row of an large toolbar.</p> |
| 34 | + <p>The sections are used to split horizontally the content of the toolbar (or the row inside). You can apply them using two types of section: <code>.md-toolbar-section-start</code> will be left-aligned and <code>.md-toolbar-section-end</code> right-aligned.</p> |
| 35 | + |
| 36 | + <code-example title="Rows, Title and Icons" :component="examples['content-actions']" /> |
| 37 | + </div> |
| 38 | + </page-container> |
| 39 | +</template> |
| 40 | + |
| 41 | +<script> |
| 42 | + import examples from 'docs-mixins/docsExample' |
| 43 | +
|
| 44 | + export default { |
| 45 | + name: 'Content', |
| 46 | + mixins: [examples], |
| 47 | + data: () => ({ |
| 48 | + api: { |
| 49 | + regular: { |
| 50 | + props: { |
| 51 | + headings: ['Name', 'Description', 'Default'], |
| 52 | + props: [ |
| 53 | + { |
| 54 | + name: 'md-elevation', |
| 55 | + type: 'String|Number', |
| 56 | + description: 'Set the toolbar shadow elevation', |
| 57 | + defaults: '4' |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + classes: { |
| 62 | + headings: ['Name', 'Description'], |
| 63 | + props: [ |
| 64 | + { |
| 65 | + name: 'md-transparent', |
| 66 | + description: 'Make the Toolbar background transparent' |
| 67 | + }, |
| 68 | + { |
| 69 | + name: 'md-dense', |
| 70 | + description: 'Create a small sized toolbar' |
| 71 | + }, |
| 72 | + { |
| 73 | + name: 'md-medium', |
| 74 | + description: 'Create a medium sized toolbar' |
| 75 | + }, |
| 76 | + { |
| 77 | + name: 'md-large', |
| 78 | + description: 'Create a large sized toolbar' |
| 79 | + } |
| 80 | + ] |
| 81 | + } |
| 82 | + } |
| 83 | + } |
| 84 | + }) |
| 85 | + } |
| 86 | +</script> |
0 commit comments