@scania/tegel
Version:
Tegel Design System
36 lines (35 loc) • 1.27 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
/**
* @slot label - Slot for the label text.
*/
export declare class TdsRadioButton {
host: HTMLElement;
/** Name of Radio Button, used for reference. */
name: string;
/** Value of input. */
value: string;
/** Unique Radio Button identifier. */
radioId: string;
/** Decides if the Radio Button is checked or not. */
checked: boolean;
/** Decides if the Radio Button is required or not. */
required: boolean;
/** Decides if the Radio Button is disabled or not. */
disabled: boolean;
/** Provides an accessible name for the component */
tdsAriaLabel: string;
/** Provides a tabindex used when radio buttons are grouped */
tdsTabIndex: number;
private inputElement;
/** Method to programmatically focus the radio button element */
focusElement(): Promise<void>;
/** Sends unique Radio Button identifier and status when it is checked.
* If no ID is specified, a random one will be generated.
* To use this listener, don't use the randomized ID, use a specific one of your choosing. */
tdsChange: EventEmitter<{
radioId: string;
value: string;
}>;
handleChange: () => void;
render(): any;
}