UNPKG

primeng

Version:

PrimeNG is a premium UI library for Angular featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock,

61 lines (58 loc) 1.71 kB
import { TemplateRef } from '@angular/core'; import { PassThrough, PassThroughOption } from 'primeng/api'; import { ButtonPassThrough } from 'primeng/types/button'; import { MenuPassThrough } from 'primeng/types/menu'; /** * Defines the icon position of the SplitButton. * @group Types */ type SplitButtonIconPosition = 'left' | 'right'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link SplitButton.pt} * @group Interface */ interface SplitButtonPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the Button component. * @see {@link ButtonPassThrough} */ pcButton?: ButtonPassThrough; /** * Used to pass attributes to the dropdown Button component. * @see {@link ButtonPassThrough} */ pcDropdown?: ButtonPassThrough; /** * Used to pass attributes to the TieredMenu component. */ pcMenu?: MenuPassThrough; } /** * Defines valid pass-through options in SplitButton component. * @see {@link SplitButtonPassThroughOptions} * * @template I Type of instance. */ type SplitButtonPassThrough<I = unknown> = PassThrough<I, SplitButtonPassThroughOptions<I>>; /** * Defines valid templates in SplitButton. * @group Templates */ interface SplitButtonTemplates { /** * Custom content template. */ content(): TemplateRef<void>; /** * Custom dropdown icon template. */ dropdownicon(): TemplateRef<void>; } export type { SplitButtonIconPosition, SplitButtonPassThrough, SplitButtonPassThroughOptions, SplitButtonTemplates };