1import { VariantSelects } from "components/variant-selects"; 2class VariantRadios extends VariantSelects { 3 constructor() { 4 super(); 5 } 6 updateOptions() { 7 const fieldsets = Array.from(this.querySelectorAll("fieldset")); 8 this.options = fieldsets.map((fieldset) => { 9 return Array.from(fieldset.querySelectorAll("input")).find( 10 (radio) => radio.checked 11 ).value; 12 }); 13 } 14} 15customElements.define("variant-radios", VariantRadios);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.