primeng
Version:
PrimeNG is a premium UI library for Angular featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock,
56 lines (53 loc) • 1.45 kB
TypeScript
import { PassThrough, PassThroughOption } from 'primeng/api';
/**
* Defines valid pass-through(pt) options.
* @template I Type of instance.
*
* @see {@link Compare.pt}
* @group Interface
*/
interface ComparePassThroughOptions<I = unknown> {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the item's DOM element.
*/
item?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the handle's DOM element.
*/
handle?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the indicator's DOM element.
*/
indicator?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the input's DOM element.
*/
input?: PassThroughOption<HTMLInputElement, I>;
}
/**
* Defines valid pass-through options in Compare component.
* @see {@link ComparePassThroughOptions}
*
* @template I Type of instance.
*/
type ComparePassThrough<I = unknown> = PassThrough<I, ComparePassThroughOptions<I>>;
/**
* Custom value change event.
* @see {@link Compare.onValueChange}
* @group Events
*/
interface CompareValueChangeEvent {
/**
* Browser event.
*/
originalEvent: Event;
/**
* New value.
*/
value: number;
}
export type { ComparePassThrough, ComparePassThroughOptions, CompareValueChangeEvent };