@exmg/exmg-radio-group
Version:
Paper style radio group element
72 lines (71 loc) • 1.69 kB
TypeScript
import { LitElement } from 'lit';
export declare class ExmgRadioGroup extends LitElement {
/**
* Name of the element
* @type {String}
*/
name?: string;
/**
* Sets the selected item
* @type {String}
*/
selected: string;
/**
* Marks the radio group as required
* @type {Boolean}
*/
required: boolean;
/**
* Allows vertical radio group items
* @type {Boolean}
*/
vertical: boolean;
/**
* Sets flex wrap
* @type {Boolean}
*/
wrap: boolean;
/**
* Marks the radio group as invalid for validation
* @type {Boolean}
*/
invalid: boolean;
private litItemName;
private _onKeyPressed;
private _handleRadioGroupItemChanged;
get value(): string;
set value(value: string);
constructor();
/**
* Handle key press
* @param e
*/
private onKeyPressed;
/**
* Validate function to check required and selected
* @returns {Boolean}
* @public
*/
validate(): boolean;
static styles: import("lit").CSSResult[];
/**
* Radio group item change handler
* @param e
* @fires exmg-radio-group-changed
* @private
*/
private handleRadioGroupItemChanged;
/**
* Sets selected item based on the selected property
* @private
*/
private setProperSelectedItem;
connectedCallback(): void;
disconnectedCallback(): void;
render(): import("lit-html").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'exmg-radio-group': ExmgRadioGroup;
}
}