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
41 lines (38 loc) • 1.12 kB
TypeScript
import { PassThroughOption, PassThrough } from 'primeng/api';
/**
* Custom pass-through(pt) options.
* @template I Type of instance.
*
* @see {@link Knob.pt}
* @group Interface
*/
interface KnobPassThroughOptions<I = unknown> {
/**
* Used to pass attributes to the host's DOM element.
*/
host?: PassThroughOption<HTMLElement, I>;
/**
* Used to pass attributes to the SVG's DOM element.
*/
svg?: PassThroughOption<SVGElement, I>;
/**
* Used to pass attributes to the range's DOM element.
*/
range?: PassThroughOption<SVGPathElement, I>;
/**
* Used to pass attributes to the value's DOM element.
*/
value?: PassThroughOption<SVGPathElement, I>;
/**
* Used to pass attributes to the text's DOM element.
*/
text?: PassThroughOption<SVGTextElement, I>;
}
/**
* Defines valid pass-through options in Knob component.
* @see {@link KnobPassThroughOptions}
*
* @template I Type of instance.
*/
type KnobPassThrough<I = unknown> = PassThrough<I, KnobPassThroughOptions<I>>;
export type { KnobPassThrough, KnobPassThroughOptions };