UNPKG

primeng

Version:

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

83 lines (80 loc) 2.25 kB
import { PassThroughOption, PassThrough } from 'primeng/api'; import { ButtonPassThrough } from 'primeng/types/button'; import { TemplateRef } from '@angular/core'; import { MotionOptions } from '@primeuix/motion'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Drawer.pt} * @group Interface */ interface DrawerPassThroughOptions<I = unknown> { /** * Used to pass attributes to the host's DOM element. */ host?: PassThroughOption<HTMLElement, I>; /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the header's DOM element. */ header?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the title's DOM element. */ title?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the close Button component. * @see {@link ButtonPassThrough} */ pcCloseButton?: ButtonPassThrough; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the footer's DOM element. */ footer?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass options to the motion component/directive. */ motion?: MotionOptions; } /** * Defines valid pass-through options in Drawer. * @see {@link DrawerPassThroughOptions} * * @template I Type of instance. */ type DrawerPassThrough<I = unknown> = PassThrough<I, DrawerPassThroughOptions<I>>; /** * Defines valid templates in Drawer. * @group Templates */ interface DrawerTemplates { /** * Custom template of header. */ header(): TemplateRef<void>; /** * Custom template of content. */ content(): TemplateRef<void>; /** * Custom template of footer. */ footer(): TemplateRef<void>; /** * Custom template of close icon. */ closeicon(): TemplateRef<void>; /** * Headless template to replace the entire drawer content. */ headless(): TemplateRef<void>; } export type { DrawerPassThrough, DrawerPassThroughOptions, DrawerTemplates };