ForgeKomponenty
pl

Komponenty

j-Console2

jComponent 20 · jcomponent@20 component Przykład załadowany z jComponent 20
  • 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.

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>