mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
parent
367d4a5f14
commit
8681911998
92 changed files with 7793 additions and 2 deletions
88
api-generator/components/organizationchart.js
Normal file
88
api-generator/components/organizationchart.js
Normal file
|
@ -0,0 +1,88 @@
|
|||
const OrganizationChartProps = [
|
||||
{
|
||||
name: "value",
|
||||
type: "any",
|
||||
default: "null",
|
||||
description: "Value of the component."
|
||||
},
|
||||
{
|
||||
name: "selectionKeys",
|
||||
type: "object",
|
||||
default: "null",
|
||||
description: "A map instance of key-value pairs to represented the selected nodes."
|
||||
},
|
||||
{
|
||||
name: "selectionMode",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: 'Type of the selection, valid values are "single" and "multiple".'
|
||||
},
|
||||
{
|
||||
name: "collapsible",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "Whether the nodes can be expanded or toggled."
|
||||
},
|
||||
{
|
||||
name: "collapsedKeys",
|
||||
type: "object",
|
||||
default: "null",
|
||||
description: "A map instance of key-value pairs to represented the collapsed nodes."
|
||||
}
|
||||
];
|
||||
|
||||
const OrganizationChartEvents = [
|
||||
{
|
||||
name: "node-select",
|
||||
description: "Callback to invoke when a node is selected.",
|
||||
arguments: [
|
||||
{
|
||||
name: "node",
|
||||
type: "object",
|
||||
description: "Node instance"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "node-unselect",
|
||||
description: "Callback to invoke when a node is unselected.",
|
||||
arguments: [
|
||||
{
|
||||
name: "node",
|
||||
type: "object",
|
||||
description: "Node instance"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "node-expand",
|
||||
description: "Callback to invoke when a node is expanded.",
|
||||
arguments: [
|
||||
{
|
||||
name: "node",
|
||||
type: "object",
|
||||
description: "Node instance"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "node-collapse",
|
||||
description: "Callback to invoke when a node is collapsed.",
|
||||
arguments: [
|
||||
{
|
||||
name: "node",
|
||||
type: "object",
|
||||
description: "Node instance"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
organizationchart: {
|
||||
name: "OrganizationChart",
|
||||
description: "OrganizationChart visualizes hierarchical organization data.",
|
||||
props: OrganizationChartProps,
|
||||
events: OrganizationChartEvents
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue