Skip to content

[FEAT] DaffRadioComponent and DaffRadioSetComponent #781

@xelaint

Description

@xelaint

💡 Feature request

Feature Name

DaffRadioComponent and DaffRadioSetComponent

The Desired Behavior

DaffRadioComponent needs to use the native input element (<input type="radio" />) but contains custom styling and functionality. The host should have role="radio" added as an attribute.

Properties needed for DaffRadioComponent:

  • checked
  • disabled
  • id (string for form input) - needs to be uniquely generated
  • name
  • value
  • onBlur
  • onFocus
  • onChange

DaffRadioSetComponent wraps a set of <daff-radio>s. It takes an Angular FormControl as an input. The value of the FormControl is the id of the selected radio. The host should have role="radiogroup" added as an attribute.

  • UI update

Your Use Case

As an enduser, I should be able to make a single selection from a set of options.

Prior Work

Environment


Daffodil version: X.Y.Z
Angular version: X.Y.Z 

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Metadata

Metadata

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions