High-Performance UI Component Library for Enterprise Applications › Forums › Table › I’m reviewing: Table and got confused. Any help? › Reply To: I’m reviewing: Table and got confused. Any help?
April 17, 2026 at 7:24 am
#113476
Keymaster
Hi,
You need to set the dataSource property.
const table = document.getElementById('table');
table.columns = [
{ label: 'Name', dataField: 'name' },
{ label: 'Age', dataField: 'age' }
];
table.dataSource = [
{ name: 'John', age: 30 },
{ name: 'Anna', age: 25 }
];
Best regards,
Markov
Smart UI Team
https://www.htmlelements.com/