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

67 lines
1.5 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',
description: 'Output content'
},
{
2022-09-14 14:26:41 +00:00
name: 'content',
description: 'Actual content'
}
];
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
}
};