This commit is contained in:
Tuğçe Küçükoğlu 2021-05-12 12:35:29 +03:00
parent 367d4a5f14
commit 8681911998
92 changed files with 7793 additions and 2 deletions

View file

@ -0,0 +1,55 @@
const ChipProps = [
{
name: "label",
type: "string",
default: "null",
description: "Defines the text to display."
},
{
name: "icon",
type: "string",
default: "null",
description: "Defines the icon to display."
},
{
name: "image",
type: "string",
default: "null",
description: "Defines the image to display."
},
{
name: "removable",
type: "boolean",
default: "false",
description: "Whether to display a remove icon."
},
{
name: "removeIconClass",
type: "string",
default: "pi pi-times-circle",
description: "Icon of the remove element."
}
];
const ChipEvents = [
{
name: "remove",
description: "Callback to invoke when a chip is removed.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
module.exports = {
chip: {
name: "Chip",
description: "Chip represents entities using icons, labels and images",
props: ChipProps,
events: ChipEvents
}
};