Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"list in a popup": function () {
var store = new Store();
for (var i = 0; i < 100; i++) {
store.add({label: "item " + i});
}
list = new PageableList({source: store});
list.pageLength = 25;
list.maxPages = 0;
list.placeAt(document.body);
popup.open({
popup: list,
x: 50,
y: 50
});
try {
list.deliver();
assert(list.offsetWidth > 50, "list.offsetWidth === " + list.offsetWidth);
assert(list.querySelector("d-list-item-renderer").offsetWidth > 0, "d-list-item-renderer");
assert(list.querySelector("d-list-loader[d-shown='true']").offsetWidth > 0, "d-list-loader");
} finally {
popup.close(list);
}
},