@vonage/vwc-radio
TypeScript icon, indicating that this package has built-in type declarations

2.45.0 • Public • Published

vwc-radio

This component is an extension of

Properties

Property Modifiers Type Description
checked boolean We define our own getter/setter for checked because we need to track
changes to it synchronously.

The order in which the checked property is set across radio buttons
within the same group is very important. However, we can't rely on
UpdatingElement's updated callback to observe these changes (which is
also what the @observer decorator uses), because it batches changes to
all properties.

Consider:

radio1.disabled = true;
radio2.checked = true;
radio1.checked = true;

In this case we'd first see all changes for radio1, and then for radio2,
and we couldn't tell that radio1 was the most recently checked.
disabled boolean
floatingLabelFoundation MDCFloatingLabelFoundation | undefined
global boolean
lineRippleFoundation MDCLineRippleFoundation | undefined
name string
ripple readonly RippleInterface | undefined Implement ripple getter for Ripple integration with mwc-formfield
value string

Methods

Method Type
click (): void
focus (): void
focusNative (): void
setAriaLabel (label: string): void

Events

Event
checked

Readme

Keywords

none

Package Sidebar

Install

npm i @vonage/vwc-radio

Weekly Downloads

324

Version

2.45.0

License

ISC

Unpacked Size

22.9 kB

Total Files

12

Last publish

Collaborators

  • yonatan.kra
  • yinon
  • vvd