Is it valid to use the DOM element?

Hello,


I am playing with the Tab component's GetTabContent() method (in my case, for the active tab). After getting the Syncfusion.Blazor.DOM element, I tried using the element's AddClass() and GetClassList() methods.


The GetClassList() returns a null string[]. The AddClass() method does not add the new class to the HTML DOM even after StateHasChanged().


Before going further down this path, Is this manipulation of the DOM allowed or are my efforts being ignored by the component?


Peter


3 Replies

SK Satheesh Kumar Balasubramanian Syncfusion Team March 29, 2022 01:19 PM UTC

Hi Peter,

 

No, it is not possible to manipulate the DOM element. Since, GetTabContent method is used to show the tab content in DOM format. 

Regards,

Satheesh Kumar B



PE Peter April 2, 2022 08:01 PM UTC

Thank you for confirming my suspicion. As a follow-up, id the DOM object available for use under any condition? The API dox suggest user-accessible methods exist but, per my original post, this may not be true in all situations.


Any guidance for the use of the DOM class will be appreciated.


Peter



SK Satheesh Kumar Balasubramanian Syncfusion Team April 4, 2022 02:39 PM UTC

Hi Peter,

 

Since, it is not possible to manipulate tab content in DOM which is retrieved using  GetTabContent method. Can you please share more details clearly about your requirement like what you want to manipulate in tab content DOM?

 

Regards,

Satheesh Kumar B


Loader.
Up arrow icon