ForgeKomponenty
sk

Komponenty

j-Printer

jComponent 20 · jcomponent@20 component Príklad načítaný s jComponent 20

Komponent dokáže vytlačiť obsah HTML.

  • singleton

Konfigurácia:

  • delay {Number} oneskorenie pre vyhodnotenie tlačiarne (predvolené: 500)
  • delayprint {Number} oneskorenie tlače (predvolené: 500)
  • delayclose {Number} oneskorenie zatvárania okna (predvolené: 1000)

Metódy:

// SETTER('printer/print', [title], html, test);

SETTER('printer/print', '<h1>Total.js Platform</h1>');

// Shows test window
SETTER('printer/print', '<h1>Total.js Platform</h1>', true);

Použite ho so <ui-component name="printer">. Keď komponent ešte nie je načítaný, jComponent ho stiahne pri prvom použití z adresy v DEF.fallback (predvolene CDN Componentator). Autor: Peter Širka. Zdroj: úložisko komponentov Componentator, licencia MIT.

example.html
<style>
	body { background-color: #D0D0D0; }
</style>

<ui-component name="printer"></ui-component>

<script>

	ON('ready', function() {
		SETTER('printer/print', '<h1>Total.js Platform</h1>');
	});

</script>