# j-Console2

> j-Console2: łatwy w użyciu; obsługuje tryb ciemny

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: pl
Content-SHA256: 45d2625d046158b9b9eafaab5836b44769387b944da206d2137e14e894c4c2fd
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- Wsparcie - mody ciemne

__Konfiguracja__:

- `icon {String}` ikoną etykietową (default: `ti ti-script`)
- `name {String}` etykietę (default: `Console`)
- `datasource {String}` _wymagany_ droga do źródła danych `Array`
- `clear {String_LinkToFunction/Boolean}` dodaje jasny przycisk (default: `true`)
- Konsola `autoclose {Boolean}` zamyka się automatycznie po wyczyściu (default: `true`)
- Konsola `autoshow {Boolean}` otwiera się automatycznie po nowych logach (default: `true`)
- Wysokość konsoli `height {Number}` w pikselach (default: `150`)

Użyj go z `<ui-component name="console2">`Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu `DEF.fallback` (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja MIT.

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

<ui-component name="console2" path="visible" config="datasource:logs"></ui-component>

<script>

	var visible = true;
	var logs = [];

	logs.push({ type: 'info', body: 'Lorem <b>ipsum</b> dolor sit amet, consectetur adipisicing elit. Soluta, ea.' });
	logs.push({ type: 'error', body: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Soluta, ea.' });

	// 2 seconds delay
	setTimeout(() => PUSH('logs', { type: 'warning', body: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic, tempora.' }), 2000);

</script>
```
