How to use deliteful - 3 common examples

To help you get started, we’ve selected a few deliteful 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 / ScrollableContainer.js View on Github external
before: function () {
			register("my-scrollable-container", [ScrollableContainer], {});
		},

		beforeEach: function () {
			container = document.createElement("div");
			document.body.appendChild(container);
			container.innerHTML = html;
			register.deliver();
		},

		afterEach: function () {
			container.parentNode.removeChild(container);
		},

		tests: ScrollableSharedTests.testCases
	});

	// Programatic creation
	registerSuite("deliteful/ScrollableContainer: programatic", {
		before: function () {
			container = document.createElement("div");
			document.body.appendChild(container);

			MyScrollableContainer = register("my-sc-prog", [ScrollableContainer], {});

			var w = new ScrollableContainer({ id: "sc1" });
			w.style.position = "absolute";
			w.style.width = "200px";
			w.style.height = "200px";
			w.placeAt(container);
github ibm-js / deliteful / tests / unit / ScrollableContainer.js View on Github external
// Note that the actual testing is done in ScrollableContainer-shared.

	var container, MyScrollableContainer;
	/*jshint multistr: true */
	var html = " \
			<div style="width: 2000px; height: 2000px;" id="sc1content"></div> \
			\
			 \
			 \
			 \
			";

	// Markup use-case
	ScrollableSharedTests.containerCSSClassName = "d-scrollable-container";

	registerSuite("deliteful/ScrollableContainer: markup", {
		before: function () {
			register("my-scrollable-container", [ScrollableContainer], {});
		},

		beforeEach: function () {
			container = document.createElement("div");
			document.body.appendChild(container);
			container.innerHTML = html;
			register.deliver();
		},

		afterEach: function () {
			container.parentNode.removeChild(container);
		},
github ibm-js / deliteful / tests / unit / ScrollableContainer.js View on Github external
innerContent.style.height = "2000px";
			w.appendChild(innerContent);

			w = new MyScrollableContainer({ id: "mysc1" });
			container.appendChild(w);

			w = new ScrollableContainer({ id: "sc2" });
			w.scrollDirection = "none";
			container.appendChild(w);
		},

		after: function () {
			container.parentNode.removeChild(container);
		},

		tests: ScrollableSharedTests.testCases
	});
});

deliteful

enterprise class Web Components to be used in Web & Mobile Hybrid applications

Unrecognized
Latest version published 3 years ago

Package Health Score

55 / 100
Full package analysis