# j-Printer

> Il componente può stampare un contenuto HTML.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: it
Content-SHA256: 802ca37b536e71ef36d575bb082223b46830e8e6da3bbe3f3e0e6d04eff8c0c4
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

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__:

```js
// 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.

```html 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>
```
