In TypeScript, I am working with an object called DataTable that contains multiple methods, one of which is 'refresh'
To display this DataTable on the page, it is structured as follows
<table class='DataTable'>...</table>
My current task involves retrieving the table
from the code and invoking the refresh method on it
While I can easily access the element, I am unsure how to properly cast it to its corresponding instance
Is there a way to achieve this?
Your insights will be greatly appreciated!