# j-Remember

> The component calls a function within the repeat interval. Information about the previous call is stored in localStorage.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 22964e1926f8dd8b3f2d93643dd73476084d4fa2d209c0e76d8c5c9171ffa26b
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

The component calls a function within the repeat interval. Information about the previous call is stored in `localStorage`.

__Configuration__:

- `id {String}` a remember identifier
- `repeat {String}` a repeat time e.g. `session` or `5 minutes` or `1 day`
- `exec {String}` a link to the function that will be called
- `delay {Number}` a caller delay in ms (default: `3000`)

__Methods__:

- `SETTER('remember/clear', 'id')`

Use it with `<ui-component name="remember">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="remember" config="exec:message;repeat:5 minutes"></ui-component>

<script>

	function message() {
		alert('This message will be displayed every 5 minutes');
	}

</script>
```
