for open or close widget need to set attribute to tag crypto-jeton like: document.querySelector('crypto-jeton').setAttribute('open', 'true')