# j-OneTime

> Ten element wykonuje metodę tylko raz i czeka na wygaśnięcie.

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

Ten element wykonuje metodę tylko raz i czeka na wygaśnięcie.

- Pobieranie szablonów: https://github.com/totaljs/templates

__Konfiguracja__:

- _wymagany_ `exec {String}` ścieżka do metody, która zostanie wykonana
- `expire {String}` wygaśnięcie, default `1 year`
- `delay {Number}` opóźnienie w wykonywaniu metody w milisekundach, standardowe: `1000` ms

Użyj go z `<ui-component name="onetime">`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
<ui-component name="onetime" config="exec:onetimealert;expire:1 month"></ui-component>

<script>

	function onetimealert() {
		alert('After a month, this message will appear again.');
	}

</script>
```
