# j-Approve

> j-Approve: facile da usare; singletone

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

- singolo
- Lavorare con Bootstrap
- Sviluppo - Modo oscuro
- Modalità

__Configurazione__:

- `cancel` {String} un'etichetta per annullare il pulsante (default: `Cancel`)
- __NEW__: `style` {Numero} cambiamento stile (supportato stile `1` (default) e `2`)

__Metodi__:

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

__Utilizzo__:

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

});
```

## Un semplice stile di pulsanti

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

Utilizzare con `<ui-component name="approve">`Quando il componente non è ancora caricato, jComponent Scarica il codice in prima utilizzazione dall'indirizzo `DEF.fallback` (Il Componentator La storia di Peter Širka.Fonte: il Componentator Ristorante dei componenti, licenza MIT.

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