Fixed #4845 - Sidebar: header templating updates

This commit is contained in:
tugcekucukoglu 2023-11-20 10:41:12 +03:00
parent 1e98574c80
commit c7713d3dd1
61 changed files with 249 additions and 7 deletions

View file

@ -54,7 +54,7 @@ export interface SidebarPassThroughOptions {
/**
* Used to pass attributes to the header content's DOM element.
*/
headerContent?: SidebarPassThroughOptionType;
title?: SidebarPassThroughOptionType;
/**
* Used to pass attributes to the close button's DOM element.
*/
@ -114,6 +114,10 @@ export interface SidebarProps {
* @defaultValue left
*/
position?: 'left' | 'right' | 'top' | 'bottom' | 'full' | undefined;
/**
* Title content of the dialog.
*/
header?: string | undefined;
/**
* Base zIndex value to use in layering.
* @defaultValue 0
@ -176,8 +180,14 @@ export interface SidebarSlots {
default(): VNode[];
/**
* Custom header template.
* @param {Object} scope - header slot's params.
*/
header(): VNode[];
header(scope: {
/**
* Style class of the header title
*/
class: any;
}): VNode[];
/**
* Custom close icon template.
* @param {Object} scope - close icon slot's params.