mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Toolbar pt updates
This commit is contained in:
parent
9753f2ba72
commit
917b09a67b
3 changed files with 57 additions and 4 deletions
45
components/lib/toolbar/Toolbar.d.ts
vendored
45
components/lib/toolbar/Toolbar.d.ts
vendored
|
@ -10,6 +10,46 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type ToolbarPassThroughOptionType = ToolbarPassThroughAttributes | ((options: ToolbarPassThroughMethodOptions) => ToolbarPassThroughAttributes) | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface ToolbarPassThroughMethodOptions {
|
||||
props: ToolbarProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link ToolbarProps.pt}
|
||||
*/
|
||||
export interface ToolbarPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: ToolbarPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the groupleft's DOM element.
|
||||
*/
|
||||
groupleft?: ToolbarPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the groupcenter's DOM element.
|
||||
*/
|
||||
groupcenter?: ToolbarPassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the groupright's DOM element.
|
||||
*/
|
||||
groupright?: ToolbarPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface ToolbarPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines valid properties in Toolbar component.
|
||||
*/
|
||||
|
@ -18,6 +58,11 @@ export interface ToolbarProps {
|
|||
* Defines a string value that labels an interactive element.
|
||||
*/
|
||||
'aria-labelledby'?: string | undefined;
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {ToolbarPassThroughOptions}
|
||||
*/
|
||||
pt?: ToolbarPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue