Closed zefir-git closed 2 weeks ago
The changes in the pull request involve the addition of two new public methods to the ElementComponent
class located in src/ElementComponent.ts
. The first method, text
, is designed to set the text content of an element by updating this.element.textContent
with a provided string. The second method, html
, allows for the setting of the inner HTML of the element by modifying this.element.innerHTML
with a given string. Both methods are structured to return the instance of the ElementComponent
class, facilitating method chaining. The modifications do not include any alterations to existing methods or properties within the class. The specific declarations for the newly added methods are public text(text: string)
and public html(html: string)
.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?