Skip to content

Commit 623d399

Browse files
added test for setData()
1 parent 184a016 commit 623d399

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

types/tabulator-tables/tabulator-tables-tests.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,3 +1742,18 @@ table = new Tabulator("#example-table", {
17421742
},
17431743
],
17441744
});
1745+
1746+
table = new Tabulator("#example-table", {
1747+
height: "500px",
1748+
layout: "fitColumns",
1749+
ajaxURL: "https://jsonplaceholder.typicode.com/posts",
1750+
columns: [
1751+
{title: "ID", field: "id", width: 50},
1752+
{title: "User ID", field: "userId", width: 50},
1753+
{title: "Title", field: "title"},
1754+
{title: "Body", field: "body"},
1755+
]
1756+
});
1757+
1758+
table.setData(table.getAjaxUrl());
1759+
table.setData();

0 commit comments

Comments
 (0)