/** * * SplitButton groups a set of commands in an overlay with a default command. * * [Live Demo](https://www.primevue.org/splitbutton/) * * @module splitbutton * */ import { ButtonHTMLAttributes, VNode } from 'vue'; import { MenuItem } from '../menuitem'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; /** * Defines valid properties in SplitButton component. */ export interface SplitButtonProps { /** * Text of the button. */ label?: string | undefined; /** * Name of the icon. */ icon?: string | undefined; /** * MenuModel instance to define the overlay items. */ model?: MenuItem[] | undefined; /** * Whether to automatically manage layering. * @defaultValue true */ autoZIndex?: boolean | undefined; /** * Base zIndex value to use in layering. * @defaultValue 0 */ baseZIndex?: number | undefined; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. * Special keywords are 'body' for document body and 'self' for the element itself. * @defaultValue body */ appendTo?: 'body' | 'self' | string | undefined | HTMLElement; /** * When present, it specifies that the element should be disabled. * @defaultValue false */ disabled?: boolean | undefined; /** * Style class of the component. */ class?: any | undefined; /** * Inline style of the component. */ style?: any | undefined; /** * Uses to pass all properties of the HTMLButtonElement to the default button. */ buttonProps?: ButtonHTMLAttributes | undefined; /** * Uses to pass all properties of the HTMLButtonElement to the menu button. */ menuButtonProps?: ButtonHTMLAttributes | undefined; /** * Name of the menu button icon. */ menuButtonIcon?: string | undefined; } /** * Defines valid slots in SplitButton component. */ export interface SplitButtonSlots { /** * Button part of the content can easily be customized with the default slot instead of using the built-in modes. */ default(): VNode[]; } /** * Defines valid emits in SplitButton component. */ export interface SplitButtonEmits { /** * Callback to invoke when main button is clicked. * @param {Event} event - Browser event. */ click(event: Event): void; } /** * **PrimeVue - SplitButton** * * _SplitButton groups a set of commands in an overlay with a default command._ * * [Live Demo](https://www.primevue.org/splitbutton/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg) * * @group Component * */ declare class SplitButton extends ClassComponent {} declare module '@vue/runtime-core' { interface GlobalComponents { SplitButton: GlobalComponentConstructor; } } export default SplitButton;