Blame view

src/RadioButton/RadioButton.js 362 Bytes
3a3ecabe   Imshann   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  import template from "./RadioButton.html";
  
  class RadioButton {
      props = {
          value: String,
      };
  
      state = {
          checked: false,
      };
  
      constructor(esRadioGroup) {
          this.esRadioGroup = esRadioGroup.getContext()
          $element.removeAttr("value");
      }
  
      handleClick(event) {
          this.esRadioGroup.setValue(event);
      }
  }