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

71 lines
1.6 KiB
JavaScript
Raw Normal View History

const InplaceProps = [
{
2022-09-14 14:26:41 +00:00
name: 'active',
type: 'boolean',
default: 'false',
description: 'Whether the content is displayed or not.'
},
{
2022-09-14 14:26:41 +00:00
name: 'closable',
type: 'boolean',
default: 'false',
description: 'Displays a button to switch back to display mode.'
},
{
2022-09-14 14:26:41 +00:00
name: 'diabled',
type: 'boolean',
default: 'false',
description: 'When present, it specifies that the element should be disabled.'
}
];
const InplaceEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'open',
description: 'Callback to invoke when inplace is opened.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Browser event'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'close',
description: 'Callback to invoke when inplace is closed.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Browser event'
}
]
}
];
const InplaceSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'display',
2023-04-18 13:42:36 +00:00
description: 'Custom display template.'
},
{
2022-09-14 14:26:41 +00:00
name: 'content',
2023-04-18 13:42:36 +00:00
description: 'Custom content template.'
},
{
name: 'closeicon',
description: 'Custom close icon template.'
}
];
module.exports = {
inplace: {
2022-09-14 14:26:41 +00:00
name: 'Inplace',
description: 'Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.',
props: InplaceProps,
events: InplaceEvents,
slots: InplaceSlots
}
};