mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
79
doc/paginator/ResponsiveDoc.vue
Normal file
79
doc/paginator/ResponsiveDoc.vue
Normal file
|
@ -0,0 +1,79 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>
|
||||
Paginator elements can be customized per screen size by defining a template per breakpoint. Note that breakpoints are based on max-width setting, if default key is omitted then the default template would be used. Example below has 4
|
||||
settings; up to 640px, between 641px-960px, between 961px-1300px and larger than 1301px which is the default.
|
||||
</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<Paginator
|
||||
:template="{
|
||||
'640px': 'PrevPageLink CurrentPageReport NextPageLink',
|
||||
'960px': 'FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink',
|
||||
'1300px': 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink',
|
||||
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink JumpToPageDropdown JumpToPageInput'
|
||||
}"
|
||||
:rows="10"
|
||||
:totalRecords="120"
|
||||
></Paginator>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<Paginator
|
||||
:template="{
|
||||
'640px': 'PrevPageLink CurrentPageReport NextPageLink',
|
||||
'960px': 'FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink',
|
||||
'1300px': 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink',
|
||||
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink JumpToPageDropdown JumpToPageInput'
|
||||
}"
|
||||
:rows="10"
|
||||
:totalRecords="120">
|
||||
</Paginator>`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<Paginator
|
||||
:template="{
|
||||
'640px': 'PrevPageLink CurrentPageReport NextPageLink',
|
||||
'960px': 'FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink',
|
||||
'1300px': 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink',
|
||||
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink JumpToPageDropdown JumpToPageInput'
|
||||
}"
|
||||
:rows="10"
|
||||
:totalRecords="120">
|
||||
</Paginator>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<\/script>`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<Paginator
|
||||
:template="{
|
||||
'640px': 'PrevPageLink CurrentPageReport NextPageLink',
|
||||
'960px': 'FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink',
|
||||
'1300px': 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink',
|
||||
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink JumpToPageDropdown JumpToPageInput'
|
||||
}"
|
||||
:rows="10"
|
||||
:totalRecords="120">
|
||||
</Paginator>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<\/script>`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue