Toolbar doc added
parent
a44a532758
commit
eaa94fd20f
|
@ -23,5 +23,16 @@
|
|||
</template>
|
||||
</Toolbar>
|
||||
</div>
|
||||
|
||||
<ToolbarDoc/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import ToolbarDoc from './ToolbarDoc';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'ToolbarDoc': ToolbarDoc
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,98 @@
|
|||
<template>
|
||||
<div class="content-section documentation">
|
||||
<TabView>
|
||||
<TabPanel header="Documentation">
|
||||
<h3>Import</h3>
|
||||
<CodeHighlight lang="javascript">
|
||||
import Toolbar from 'primevue/toolbar';
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Getting Started</h3>
|
||||
<p>Toolbar is a container component defined using Toolbar element. Left aligned content is placed inside a template with "left" name and similarly "right" for right alignment..</p>
|
||||
<CodeHighlight>
|
||||
<Toolbar>
|
||||
<template slot="left">
|
||||
<Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
|
||||
<Button label="Upload" icon="pi pi-upload" class="p-button-success" />
|
||||
<i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
|
||||
<Button label="Save" icon="pi pi-check" class="p-button-warning" />
|
||||
</template>
|
||||
|
||||
<template slot="right">
|
||||
<Button icon="pi pi-search" style="margin-right: .25em" />
|
||||
<Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
|
||||
<Button icon="pi pi-times" class="p-button-danger" />
|
||||
</template>
|
||||
</Toolbar>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Styling</h3>
|
||||
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Element</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>p-toolbar</td>
|
||||
<td>Main container element.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-toolbar-group-left</td>
|
||||
<td>Left content container.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-toolbar-group-right</td>
|
||||
<td>Right content container.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3>Dependencies</h3>
|
||||
<p>None.</p>
|
||||
</TabPanel>
|
||||
|
||||
<TabPanel header="Source">
|
||||
<a href="https://github.com/primefaces/primevue/tree/master/src/views/toolbar" class="btn-viewsource" target="_blank" rel="noopener noreferrer">
|
||||
<span>View on GitHub</span>
|
||||
</a>
|
||||
<CodeHighlight>
|
||||
<template v-pre>
|
||||
<template>
|
||||
<div>
|
||||
<div class="content-section introduction">
|
||||
<div class="feature-intro">
|
||||
<h1>Toolbar</h1>
|
||||
<p>Toolbar is a grouping component for buttons and other content.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-section implementation">
|
||||
<Toolbar>
|
||||
<template slot="left">
|
||||
<Button label="New" icon="pi pi-plus" style="margin-right: .25em" />
|
||||
<Button label="Upload" icon="pi pi-upload" class="p-button-success" />
|
||||
<i class="pi pi-bars p-toolbar-separator" style="margin-right: .25em" />
|
||||
<Button label="Save" icon="pi pi-check" class="p-button-warning" />
|
||||
</template>
|
||||
|
||||
<template slot="right">
|
||||
<Button icon="pi pi-search" style="margin-right: .25em" />
|
||||
<Button icon="pi pi-calendar" class="p-button-success" style="margin-right: .25em" />
|
||||
<Button icon="pi pi-times" class="p-button-danger" />
|
||||
</template>
|
||||
</Toolbar>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</CodeHighlight>
|
||||
</TabPanel>
|
||||
</TabView>
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in New Issue