# j-CountDown

> The component can show an action when time is expired.

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

The component can show an action when time is expired.


__Configuration__

- `text {String}` optional, a text for countdown

Use it with `<ui-component name="countdown">`. 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: Tomáš Novák. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="countdown" path="expiredate" class="invisible">
	<script type="text/html">You can send SMS again: {0}</script>
	<a href="#">Send SMS again</a>
</ui-component>

<ui-component name="countdown" path="expiredate" config="text:You can send SMS again\: {0}" class="invisible">
	<a href="#">Send SMS again</a>
</ui-component>

<script>
	var expiredate = NOW.add('10 seconds');
</script>
```
