diff --git a/api-generator/components/sidebar.js b/api-generator/components/sidebar.js
index 039930a1c..333484b7b 100644
--- a/api-generator/components/sidebar.js
+++ b/api-generator/components/sidebar.js
@@ -52,6 +52,12 @@ const SidebarProps = [
type: 'boolean',
default: 'false',
description: 'Whether background scroll should be blocked when sidebar is visible.'
+ },
+ {
+ name: 'closeIcon',
+ type: 'string',
+ default: 'undefined',
+ description: 'Icon to display in the sidebar close button.'
}
];
@@ -63,6 +69,10 @@ const SidebarEvents = [
{
name: 'show',
description: 'Callback to invoke when sidebar gets shown.'
+ },
+ {
+ name: 'closeicon',
+ description: 'Custom close icon template.'
}
];
diff --git a/components/lib/overlaypanel/OverlayPanel.d.ts b/components/lib/overlaypanel/OverlayPanel.d.ts
index da1287241..333888ac1 100755
--- a/components/lib/overlaypanel/OverlayPanel.d.ts
+++ b/components/lib/overlaypanel/OverlayPanel.d.ts
@@ -66,7 +66,7 @@ export interface OverlayPanelProps {
*/
breakpoints?: OverlayPanelBreakpoints;
/**
- * Icon to display in the message close button.
+ * Icon to display in the overlaypanel close button.
*/
closeIcon?: string | undefined;
}
diff --git a/components/lib/sidebar/Sidebar.d.ts b/components/lib/sidebar/Sidebar.d.ts
index 4209543a8..6dc071c69 100755
--- a/components/lib/sidebar/Sidebar.d.ts
+++ b/components/lib/sidebar/Sidebar.d.ts
@@ -46,7 +46,6 @@ export interface SidebarProps {
showCloseIcon?: boolean | undefined;
/**
* Icon to display in the sidebar close button.
- * @defaultValue pi pi-times
*/
closeIcon?: string | undefined;
/**
@@ -73,6 +72,10 @@ export interface SidebarSlots {
* Custom header template.
*/
header(): VNode[];
+ /**
+ * Custom close icon template.
+ */
+ closeicon(): VNode[];
}
/**
diff --git a/components/lib/sidebar/Sidebar.vue b/components/lib/sidebar/Sidebar.vue
index 65a7f38f2..140cd9bea 100755
--- a/components/lib/sidebar/Sidebar.vue
+++ b/components/lib/sidebar/Sidebar.vue
@@ -8,7 +8,9 @@