This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExpandableText extends HTMLElement { | |
private shadow: ShadowRoot; | |
private container: HTMLDivElement; | |
private readMoreBtn: HTMLSpanElement; | |
private expanded: boolean; | |
private containerLargerThanText: boolean; | |
constructor() { | |
super(); | |
this.shadow = this.attachShadow({ mode: 'open' }); |
OlderNewer