High-Performance UI Component Library for Enterprise Applications Forums Table I’m reviewing: Table and got confused. Any help?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #113451
    linda05
    Participant

    How do I bind data to the Smart Table in web app?

    #113476
    admin
    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.