mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
New *ButtonProps properties added - I
This commit is contained in:
parent
b828f34a86
commit
ddeaab525a
23 changed files with 543 additions and 278 deletions
29
components/lib/sidebar/Sidebar.d.ts
vendored
29
components/lib/sidebar/Sidebar.d.ts
vendored
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
import { TransitionProps, VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ButtonPassThroughOptions } from '../button';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
|
||||
|
@ -46,6 +47,20 @@ export interface SidebarPassThroughMethodOptions {
|
|||
global: object | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom shared passthrough(pt) option method.
|
||||
*/
|
||||
export interface SidebarSharedPassThroughMethodOptions {
|
||||
/**
|
||||
* Defines valid properties.
|
||||
*/
|
||||
props: SidebarProps;
|
||||
/**
|
||||
* Defines current inline state.
|
||||
*/
|
||||
state: SidebarState;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link SidebarProps.pt}
|
||||
|
@ -64,13 +79,10 @@ export interface SidebarPassThroughOptions {
|
|||
*/
|
||||
title?: SidebarPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the close button's DOM element.
|
||||
* Used to pass attributes to the previous button's DOM element.
|
||||
* @see {@link ButtonPassThroughOptions}
|
||||
*/
|
||||
closeButton?: SidebarPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the close icon's DOM element.
|
||||
*/
|
||||
closeIcon?: SidebarPassThroughOptionType;
|
||||
toggler?: ButtonPassThroughOptions<SidebarSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the content's DOM element.
|
||||
*/
|
||||
|
@ -146,6 +158,11 @@ export interface SidebarProps {
|
|||
* @defaultValue true
|
||||
*/
|
||||
showCloseIcon?: boolean | undefined;
|
||||
/**
|
||||
* Used to pass the custom value to read for the button inside the component.
|
||||
* @defaultValue { severity: 'secondary', text: true, rounded: true }
|
||||
*/
|
||||
closeButtonProps?: object | undefined;
|
||||
/**
|
||||
* Icon to display in the sidebar close button.
|
||||
* @deprecated since v3.27.0. Use 'closeicon' slot.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue