# j-Approve

> j-Approve: könnyen használható; singleton

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

- Szingapúr
- A Bootstrap munkája
- Támogatja a sötét módot
- Modalitás

__konfiguráció__:

- `cancel` {String} a törlés gomb címke (default: `Cancel`)
- __NEW__: `style` {Number} változó stílus (támogatott stílus `1` (default) és `2`)

__módszerek__:

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

__Használat__:

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

});
```

## Egyszerű gombok kialakítása

```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);
```

Használja a `<ui-component name="approve">`Amennyiben a készülék még nem tölthető le, jComponent letöltés az első felhasználásra a címről `DEF.fallback` (Azt a Componentator A szerző: Peter Širka. forrás: a Componentator Az összetevők raktár, MIT licenc.

```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>
```
