📊 VanillaJS ExceLike Table - Basic Example
This example demonstrates the simplest usage of the ExceLike Table library with minimal configuration.
Code Example:
<!-- HTML -->
<div id="table-container"></div>
<script>
const table = new ExceLikeTable('#table-container', {
data: [
{ id: 1, name: 'John Doe', age: 30, city: 'New York' },
{ id: 2, name: 'Jane Smith', age: 25, city: 'London' },
{ id: 3, name: 'Bob Johnson', age: 35, city: 'Tokyo' }
],
columns: [
{ key: 'id', title: 'ID', dataIndex: 'id', width: 80 },
{ key: 'name', title: 'Name', dataIndex: 'name', width: 150 },
{ key: 'age', title: 'Age', dataIndex: 'age', width: 100 },
{ key: 'city', title: 'City', dataIndex: 'city', width: 120 }
]
});
</script>