mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4845 - Sidebar: header templating updates
This commit is contained in:
parent
1e98574c80
commit
c7713d3dd1
61 changed files with 249 additions and 7 deletions
14
components/lib/sidebar/Sidebar.d.ts
vendored
14
components/lib/sidebar/Sidebar.d.ts
vendored
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue