# j-Approve

> j-Approve: snadné použití; singleton

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

- singleton
- Práce s Bootstrap
- Podporuje _tmavý režim_
- Modalová

__Konfigurace__:

- `cancel` {String} značka pro tlačítko zrušení (předvolené: `Cancel`)
- __NEW__: `style` {Number} změny stylu (podporované styl `1` (default) a `2`)

__Metody__:

- `component.show(message, approve_button_label, [cancel_button_label], callback, [callback_cancel])`

__Použití__:

```js
SETTER('approve/show', message, 'Yes', function() {

});
```

## Jednoduchý stylování tlačítek

```js
// "Remove" button will be with Font-Awesome icon called: "trash-o"
SETTER('approve/show', 'Are you sure you want to remove selected item?', ':trash-o: Remove', REMOVE_FUNCTION);

// "Confirm" button will be "green" with Font-Awesome icon called: "checked-circle"
SETTER('approve/show', 'Are you sure you want to confirm selected items?', ':checked-circle: Confirm #2BA433', REMOVE_FUNCTION);
```

Použijte ji s `<ui-component name="approve">`Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy `DEF.fallback` a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.

```html example.html
<ui-component name="approve"></ui-component>

<script>
	SETTER(true, 'approve/show', 'Do you want to remove React/Vue/Angular.js from your device?', ':check-circle: OK', function() {
		alert('Thank you for using of jComponent library');
	});
</script>
```
