@kushki/ng-suka
Version:
<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>
53 lines (52 loc) • 1.56 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { ButtonRadioChange } from './button-radio-change.class';
export declare class ButtonRadio {
/**
* Used to dynamically create unique ids for the `ButtonRadio`.
*/
static buttonRadioCount: number;
checked: boolean;
name: string;
disabled: boolean;
ariaLabelledby: string;
/**
* Sets the HTML required attribute
*/
required: boolean;
/**
* The value of the `Radio`.
*/
value: string;
/**
* Set to `true` for a loading table.
*/
skeleton: boolean;
/**
* The id for the `Radio`.
*/
id: string;
/**
* emits when the state of the radio changes
*/
change: EventEmitter<ButtonRadioChange>;
/**
* Binds 'radio' value to the role attribute for `Radio`.
*/
role: string;
hostClass: boolean;
protected _labelledby: string;
/**
* Handler provided by the `ButtonRadioGroup` to bubble events up
*/
buttonRadioChangeHandler: (event: ButtonRadioChange) => void;
/**
* Synchronizes with the `ButtonRadioGroup` in the event of a changed `ButtonRadio`.
* Emits the changes of both the `ButtonRadioGroup` and `ButtonRadio`.
*/
onChange(event: Event): void;
/**
* Method called by `ButtonRadioGroup` with a callback function to bubble `ButtonRadioChange` events
* @param fn callback that expects a `ButtonRadioChange` as an argument
*/
registerButtonRadioChangeHandler(fn: (event: ButtonRadioChange) => void): void;
}