import { TemplateRef } from "@angular/core"; import { PassThrough, PassThroughOption } from "primeng/api"; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Toolbar.pt} * @group Interface */ export interface ToolbarPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the start's DOM element. */ start?: PassThroughOption; /** * Used to pass attributes to the center's DOM element. */ center?: PassThroughOption; /** * Used to pass attributes to the right's DOM element. */ end?: PassThroughOption; } /** * Defines valid pass-through options in Toolbar component. * @see {@link ToolbarPassThroughOptions} * * @template I Type of instance. */ export type ToolbarPassThrough = PassThrough>; /** * Defines valid templates in Toolbar. * @group Templates */ export interface ToolbarTemplates { /** * Custom start template. */ start(): TemplateRef; /** * Custom end template. */ end(): TemplateRef; /** * Custom center template. */ center(): TemplateRef; }