How to use the delite/popup.open function in delite

To help you get started, we’ve selected a few delite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ibm-js / deliteful / tests / unit / list / PageableList.js View on Github external
"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);
				}
			},

delite

core UI infrastructure for building multi channel, enterprise class Web Components to be used in Web & Mobile Hybrid applications

Unrecognized
Latest version published 2 years ago

Package Health Score

55 / 100
Full package analysis