Is there any way to pass parameters to the custom web component ? I need parameters for my component . Class is extended html collection.
class CustomDropdown extends HTMLElement{
constructor(){
super();
this.shadow = this.attachShadow({ mode : 'open' });
this.setAttribute('expanded', there should be some parameter );
}
}