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

59 lines (56 loc) 1.69 kB
import { TemplateRef } from '@angular/core'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link ProgressBar.pt} * @group Interface */ interface ProgressBarPassThroughOptions<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 value's DOM element. */ value?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the label's DOM element. */ label?: PassThroughOption<HTMLDivElement, I>; } /** * Defines valid pass-through options in ProgressBar. * @see {@link ProgressBarPassThroughOptions} * * @template I Type of instance. */ type ProgressBarPassThrough<I = unknown> = PassThrough<I, ProgressBarPassThroughOptions<I>>; /** * Custom content template context. * @group Interface */ interface ProgressBarContentTemplateContext { /** * Value of the progressbar. */ $implicit: number | undefined; } /** * Defines valid templates in ProgressBar. * @group Templates */ interface ProgressBarTemplates { /** * Custom template of content. * @param {ProgressBarContentTemplateContext} context - content context. */ content(context: ProgressBarContentTemplateContext): TemplateRef<ProgressBarContentTemplateContext>; } export type { ProgressBarContentTemplateContext, ProgressBarPassThrough, ProgressBarPassThroughOptions, ProgressBarTemplates };