ForgeComponenti
it

Componenti

j-Printer

jComponent 20 · jcomponent@20 component Esempio caricato con jComponent 20

Il componente può stampare un contenuto HTML.

  • singolo

Configurazione:

  • delay {Number} un ritardo per la valutazione della stampante (default: 500)
  • delayprint {Number} un ritardo per la stampa (default: 500)
  • delayclose {Number} un ritardo per la finestra di chiusura (default: 1000)

Metodi:

// 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);

Utilizzare con <ui-component name="printer">Quando il componente non è ancora caricato, jComponent Scarica il codice in prima utilizzazione dall'indirizzo DEF.fallback (Il Componentator La storia di Peter Širka.Fonte: il Componentator Ristorante dei componenti, licenza 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>