JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Data values › Reply To: Data values
December 14, 2023 at 10:02 pm
#109318
ivanpeevski
Participant
Hi,
You can use data attributes on our components in the same way you would for any other html element. Like this:
let grid = document.querySelector(‘smart-grid’);
grid.dataset.customData = “abc”;
console.log(grid.dataset.customData);
Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/