mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Lint changes
This commit is contained in:
parent
eb2de5460c
commit
4d3a071e66
291 changed files with 28450 additions and 26621 deletions
|
@ -1,78 +1,78 @@
|
|||
const PaginatorProps = [
|
||||
{
|
||||
name: "totalRecords",
|
||||
type: "number",
|
||||
default: "0",
|
||||
description: "Number of total records."
|
||||
name: 'totalRecords',
|
||||
type: 'number',
|
||||
default: '0',
|
||||
description: 'Number of total records.'
|
||||
},
|
||||
{
|
||||
name: "rows",
|
||||
type: "number",
|
||||
default: "0",
|
||||
description: "Data count to display per page."
|
||||
name: 'rows',
|
||||
type: 'number',
|
||||
default: '0',
|
||||
description: 'Data count to display per page.'
|
||||
},
|
||||
{
|
||||
name: "first",
|
||||
type: "number",
|
||||
default: "0",
|
||||
description: "Zero-relative number of the first row to be displayed."
|
||||
name: 'first',
|
||||
type: 'number',
|
||||
default: '0',
|
||||
description: 'Zero-relative number of the first row to be displayed.'
|
||||
},
|
||||
{
|
||||
name: "pageLinkSize",
|
||||
type: "number",
|
||||
default: "5",
|
||||
description: "Number of page links to display."
|
||||
name: 'pageLinkSize',
|
||||
type: 'number',
|
||||
default: '5',
|
||||
description: 'Number of page links to display.'
|
||||
},
|
||||
{
|
||||
name: "rowsPerPageOptions",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "Array of integer values to display inside rows per page dropdown."
|
||||
name: 'rowsPerPageOptions',
|
||||
type: 'array',
|
||||
default: 'null',
|
||||
description: 'Array of integer values to display inside rows per page dropdown.'
|
||||
},
|
||||
{
|
||||
name: "template",
|
||||
type: "string",
|
||||
default: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",
|
||||
description: "Template of the paginator."
|
||||
name: 'template',
|
||||
type: 'string',
|
||||
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',
|
||||
description: 'Template of the paginator.'
|
||||
},
|
||||
{
|
||||
name: "currentPageReportTemplate",
|
||||
type: "string",
|
||||
default: "({currentPage} of {totalPages})",
|
||||
description: "Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}"
|
||||
name: 'currentPageReportTemplate',
|
||||
type: 'string',
|
||||
default: '({currentPage} of {totalPages})',
|
||||
description: 'Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}'
|
||||
},
|
||||
{
|
||||
name: "alwaysShow",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether to show the paginator even there is only one page."
|
||||
name: 'alwaysShow',
|
||||
type: 'boolean',
|
||||
default: 'true',
|
||||
description: 'Whether to show the paginator even there is only one page.'
|
||||
}
|
||||
];
|
||||
|
||||
const PaginatorEvents = [
|
||||
{
|
||||
name: "page",
|
||||
description: "Callback to invoke when page changes, the event object contains information about the new state.",
|
||||
name: 'page',
|
||||
description: 'Callback to invoke when page changes, the event object contains information about the new state.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.page",
|
||||
type: "number",
|
||||
description: "New page number"
|
||||
name: 'event.page',
|
||||
type: 'number',
|
||||
description: 'New page number'
|
||||
},
|
||||
{
|
||||
name: "event.first",
|
||||
type: "number",
|
||||
description: "Index of first record"
|
||||
name: 'event.first',
|
||||
type: 'number',
|
||||
description: 'Index of first record'
|
||||
},
|
||||
{
|
||||
name: "event.rows",
|
||||
type: "number",
|
||||
description: "Number of rows to display in new page"
|
||||
name: 'event.rows',
|
||||
type: 'number',
|
||||
description: 'Number of rows to display in new page'
|
||||
},
|
||||
{
|
||||
name: "event.pageCount",
|
||||
type: "number",
|
||||
description: "Total number of pages"
|
||||
name: 'event.pageCount',
|
||||
type: 'number',
|
||||
description: 'Total number of pages'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -80,19 +80,19 @@ const PaginatorEvents = [
|
|||
|
||||
const PaginatorSlots = [
|
||||
{
|
||||
name: "left",
|
||||
name: 'left',
|
||||
description: "Custom content for the component's left side"
|
||||
},
|
||||
{
|
||||
name: "right",
|
||||
name: 'right',
|
||||
description: "Custom content for the component's right side"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
paginator: {
|
||||
name: "Paginator",
|
||||
description: "Paginator is a generic component to display content in paged format.",
|
||||
name: 'Paginator',
|
||||
description: 'Paginator is a generic component to display content in paged format.',
|
||||
props: PaginatorProps,
|
||||
events: PaginatorEvents,
|
||||
slots: PaginatorSlots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue