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
52 lines (49 loc) • 1.32 kB
TypeScript
import { PassThroughOption, PassThrough } from 'primeng/api';
/**
* Custom passthrough(pt) options.
* @template I Type of instance.
*
* @see {@link RadioButton.pt}
* @group Interface
*/
interface RadioButtonPassThroughOptions<I = unknown> {
/**
* Used to pass attributes to the root's DOM element.
*/
root?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the input's DOM element.
*/
input?: PassThroughOption<HTMLInputElement, I>;
/**
* Used to pass attributes to the box's DOM element.
*/
box?: PassThroughOption<HTMLDivElement, I>;
/**
* Used to pass attributes to the icon's DOM element.
*/
icon?: PassThroughOption<HTMLDivElement, I>;
}
/**
* Defines valid pass-through options in RadioButton component.
* @see {@link RadioButtonPassThroughOptions}
*
* @template I Type of instance.
*/
type RadioButtonPassThrough<I = unknown> = PassThrough<I, RadioButtonPassThroughOptions<I>>;
/**
* Custom click event.
* @see {@link RadioButton.onClick}
* @group Events
*/
interface RadioButtonClickEvent {
/**
* Browser event.
*/
originalEvent: Event;
/**
* Browser event.
*/
value: any;
}
export type { RadioButtonClickEvent, RadioButtonPassThrough, RadioButtonPassThroughOptions };