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

76 lines (73 loc) 1.95 kB
import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Card.pt} * @group Interface */ interface CardPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; /** * Used to pass attributes to the header's DOM element. */ header?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the body's DOM element. */ body?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the subtitle's DOM element. */ subtitle?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the title's DOM element. */ title?: PassThroughOption<HTMLDivElement, I>; /** * 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>; } /** * Defines valid pass-through options in Card component. * @see {@link CardPassThroughOptions} * * @template I Type of instance. */ type CardPassThrough<I = unknown> = PassThrough<I, CardPassThroughOptions<I>>; /** * Defines valid templates in Card. * @group Templates */ interface CardTemplates { /** * Custom header template. */ header(): TemplateRef<void>; /** * Custom title template. */ title(): TemplateRef<void>; /** * Custom subtitle template. */ subtitle(): TemplateRef<void>; /** * Custom content template. */ content(): TemplateRef<void>; /** * Custom footer template. */ footer(): TemplateRef<void>; } export type { CardPassThrough, CardPassThroughOptions, CardTemplates };