primevue-mirror/api-generator/components/orderlist.js

155 lines
4.2 KiB
JavaScript
Raw Normal View History

const OrderListProps = [
{
2022-09-14 14:26:41 +00:00
name: 'modelValue',
type: 'array',
default: 'null',
description: 'Value of the component.'
},
{
2022-09-14 14:26:41 +00:00
name: 'selection',
type: 'any',
default: 'null',
description: 'Selected items in the list.'
},
{
2022-09-14 14:26:41 +00:00
name: 'metaKeySelection',
type: 'boolean',
default: 'true',
description:
'Defines whether metaKey is requred or not for the selection. When true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.'
},
{
name: 'autoOptionFocus',
type: 'boolean',
default: 'false',
description: 'Whether to focus on the first visible or selected element when the overlay panel is shown.'
},
{
2022-09-14 14:26:41 +00:00
name: 'dataKey',
type: 'string',
default: 'null',
description: 'Name of the field that uniquely identifies the a record in the data.'
},
{
2022-09-14 14:26:41 +00:00
name: 'listStyle',
type: 'object',
default: 'null',
description: 'Inline style of the the list element.'
},
{
2022-09-14 14:26:41 +00:00
name: 'responsive',
type: 'boolean',
default: 'true',
description: 'Whether the list optimizes layout based on screen size.'
},
{
2022-09-14 14:26:41 +00:00
name: 'breakpoint',
type: 'string',
default: '960px',
description: 'The breakpoint to define the maximum width boundary when responsiveness is enabled.'
},
{
2024-05-27 06:39:11 +00:00
name: 'striped',
2022-09-14 14:26:41 +00:00
type: 'boolean',
default: 'false',
description: 'Whether to displays rows with alternating colors.'
2023-05-09 16:03:01 +00:00
},
{
name: 'pt',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
const OrderListEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'reorder',
description: 'Callback to invoke when the list is reordered.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event.originalEvent',
type: 'object',
description: 'Browser event'
},
{
2022-09-14 14:26:41 +00:00
name: 'event.value',
type: 'array',
description: 'Ordered list'
},
{
2022-09-14 14:26:41 +00:00
name: 'event.direction',
type: 'string',
description: 'Direction of the change; "up", "down", "bottom", "top"'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'selection-change',
description: 'Callback to invoke when selection changes.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event.originalEvent',
type: 'object',
description: 'Browser event'
},
{
2022-09-14 14:26:41 +00:00
name: 'event.value',
type: 'array',
description: 'Ordered list'
}
]
}
];
const OrderListSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'header',
description: "Custom content for the component's header."
},
{
2022-09-14 14:26:41 +00:00
name: 'item',
description: 'Custom content for the item.'
},
{
2022-09-14 14:26:41 +00:00
name: 'controlsstart',
description: 'Custom content before the buttons.'
},
{
2022-09-14 14:26:41 +00:00
name: 'controlsend',
description: 'Custom content after the buttons.'
},
{
name: 'movetopicon',
description: 'Custom move top icon template.'
},
{
name: 'moveupicon',
description: 'Custom move up icon template.'
},
{
name: 'movedownicon',
description: 'Custom move down icon template.'
},
{
name: 'movebottomicon',
description: 'Custom move bottom icon template.'
}
];
module.exports = {
orderlist: {
2022-09-14 14:26:41 +00:00
name: 'OrderList',
description: 'OrderList is used to managed the order of a collection.',
props: OrderListProps,
events: OrderListEvents,
slots: OrderListSlots
}
};