Docs for Panels
parent
601a413484
commit
dfa8f2f0c3
|
@ -13,6 +13,27 @@ import Card from 'primevue/card';
|
|||
<Card>
|
||||
Content
|
||||
</Card>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Templates</h3>
|
||||
<p>Card provides <i>header</i>, <i>title</i>, <i>content</i> and <i>footer</i> as the named templates to place content.</p>
|
||||
<CodeHighlight>
|
||||
<Card>
|
||||
<template slot="header">
|
||||
<img alt="user header" src="demo/images/usercard.png">
|
||||
</template>
|
||||
<template slot="title">
|
||||
Advanced Card
|
||||
</template>
|
||||
<template slot="content">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt
|
||||
quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque quas!
|
||||
</template>
|
||||
<template slot="footer">
|
||||
<Button icon="pi pi-check" label="Save" class="p-button-raised" />
|
||||
<Button icon="pi pi-times" label="Cancel" class="p-button-raised p-button-secondary" style="margin-left: .5em" />
|
||||
</template>
|
||||
</Card>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Styling</h3>
|
||||
|
|
|
@ -18,6 +18,18 @@ import Fieldset from 'primevue/fieldset';
|
|||
</Fieldset>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Custom Header</h3>
|
||||
<p>Header of the panel is either defined with the <i>legend</i> property or the legend template.</p>
|
||||
<CodeHighlight>
|
||||
<Fieldset>
|
||||
<template name="legend">
|
||||
Header Content
|
||||
</template>
|
||||
Content
|
||||
</Fieldset>
|
||||
</CodeHighlight>
|
||||
|
||||
|
||||
<h3>Toggleable</h3>
|
||||
<p>Content of the fieldset can be expanded and collapsed using <i>toggleable</i> option..</p>
|
||||
<CodeHighlight>
|
||||
|
@ -77,7 +89,7 @@ import Fieldset from 'primevue/fieldset';
|
|||
<tr>
|
||||
<td>toggle</td>
|
||||
<td>event.originalEvent: browser event <br />
|
||||
event.value: Collapsed state as a boolean
|
||||
event.value: collapsed state as a boolean
|
||||
</td>
|
||||
<td>Callback to invoke when a tab gets expanded or collapsed.</td>
|
||||
</tr>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="feature-intro">
|
||||
<h1>FlexGrid</h1>
|
||||
<p>Flex Grid CSS is a lightweight flex based responsive layout utility optimized for mobile phones, tablets and desktops.
|
||||
Flex Grid CSS is not included in PrimeReact as it is provided by <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> , a shared grid library between PrimeFaces, PrimeNG, PrimeReact and PrimeVue projects.</p>
|
||||
Flex Grid CSS is not included in PrimeVue as it is provided by <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> , a shared grid library between PrimeFaces, PrimeNG, PrimeReact and PrimeVue projects.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -16,6 +16,17 @@ import Panel from 'primevue/panel';
|
|||
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
|
||||
kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
|
||||
</Panel>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Custom Header</h3>
|
||||
<p>Header of the panel is either defined with the <i>header</i> property or the header template.</p>
|
||||
<CodeHighlight>
|
||||
<Panel>
|
||||
<template name="header">
|
||||
Header Content
|
||||
</template>
|
||||
Content
|
||||
</Panel>
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Toggleable</h3>
|
||||
|
@ -57,7 +68,7 @@ import Panel from 'primevue/panel';
|
|||
<td>collapsed</td>
|
||||
<td>boolean</td>
|
||||
<td>null</td>
|
||||
<td>Defines the initial state of panel content, supports one or two-way binding as well.</td>
|
||||
<td>Defines the initial state of panel content.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<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" />
|
||||
<SplitButton label="Save" icon="pi pi-check" :model="items" class="p-button-warning"></SplitButton>
|
||||
</template>
|
||||
|
||||
<template slot="right">
|
||||
|
@ -31,6 +31,33 @@
|
|||
import ToolbarDoc from './ToolbarDoc';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
items: [
|
||||
{
|
||||
label: 'Update',
|
||||
icon: 'pi pi-refresh'
|
||||
},
|
||||
{
|
||||
label: 'Delete',
|
||||
icon: 'pi pi-times'
|
||||
},
|
||||
{
|
||||
label: 'Vue Website',
|
||||
icon: 'pi pi-external-link',
|
||||
command: () => {
|
||||
window.location.href = 'https://vuejs.org/'
|
||||
}
|
||||
},
|
||||
{ label: 'Upload',
|
||||
icon: 'pi pi-upload',
|
||||
command: () => {
|
||||
window.location.hash = "/fileupload"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'ToolbarDoc': ToolbarDoc
|
||||
}
|
||||
|
|
|
@ -8,14 +8,14 @@ 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>
|
||||
<p>Toolbar provides <i>left</i> and <i>right</i> templates to place content at these sections.</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" />
|
||||
<SplitButton label="Save" icon="pi pi-check" :model="items" class="p-button-warning"></SplitButton>
|
||||
</template>
|
||||
|
||||
<template slot="right">
|
||||
|
@ -91,6 +91,38 @@ import Toolbar from 'primevue/toolbar';
|
|||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</CodeHighlight>
|
||||
|
||||
<CodeHighlight lang="javascript">
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
items: [
|
||||
{
|
||||
label: 'Update',
|
||||
icon: 'pi pi-refresh'
|
||||
},
|
||||
{
|
||||
label: 'Delete',
|
||||
icon: 'pi pi-times'
|
||||
},
|
||||
{
|
||||
label: 'Vue Website',
|
||||
icon: 'pi pi-external-link',
|
||||
command: () => {
|
||||
window.location.href = 'https://vuejs.org/'
|
||||
}
|
||||
},
|
||||
{ label: 'Upload',
|
||||
icon: 'pi pi-upload',
|
||||
command: () => {
|
||||
window.location.hash = "/fileupload"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
</TabPanel>
|
||||
</TabView>
|
||||
|
|
Loading…
Reference in New Issue