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

89 lines
2.2 KiB
JavaScript
Raw Normal View History

const OrganizationChartProps = [
{
2022-09-14 14:26:41 +00:00
name: 'value',
type: 'any',
default: 'null',
description: 'Value of the component.'
},
{
2022-09-14 14:26:41 +00:00
name: 'selectionKeys',
type: 'object',
default: 'null',
description: 'A map instance of key-value pairs to represented the selected nodes.'
},
{
2022-09-14 14:26:41 +00:00
name: 'selectionMode',
type: 'string',
default: 'null',
description: 'Type of the selection, valid values are "single" and "multiple".'
},
{
2022-09-14 14:26:41 +00:00
name: 'collapsible',
type: 'boolean',
default: 'false',
description: 'Whether the nodes can be expanded or toggled.'
},
{
2022-09-14 14:26:41 +00:00
name: 'collapsedKeys',
type: 'object',
default: 'null',
description: 'A map instance of key-value pairs to represented the collapsed nodes.'
}
];
const OrganizationChartEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'node-select',
description: 'Callback to invoke when a node is selected.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'node-unselect',
description: 'Callback to invoke when a node is unselected.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'node-expand',
description: 'Callback to invoke when a node is expanded.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'node-collapse',
description: 'Callback to invoke when a node is collapsed.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'node',
type: 'object',
description: 'Node instance'
}
]
}
];
module.exports = {
organizationchart: {
2022-09-14 14:26:41 +00:00
name: 'OrganizationChart',
description: 'OrganizationChart visualizes hierarchical organization data.',
props: OrganizationChartProps,
events: OrganizationChartEvents
}
};