# j-Confirm

> j-Confirm: лесен за използване; сингъл

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

- Синглът
- Работи с Bootstrap
- Поддържат тъмния режим
- Моделът


__Използване__:

```javascript
SETTER('confirm/show', message, ['Yes', 'No'], function(index) {
	// @index {Number} a button index

	// In this case:
	// index == 0: Yes
	// index == 1: No
});

SETTER('confirm/show2', message, ['Yes', 'No'], function() {
	// In this case will be the callback executed if the user will click on "yes" button only
});
```

## Прост стил на бутони

```javascript
// "Remove" button will be with Font-Awesome icon called: "trash-o"
SETTER('confirm', 'show2', 'Are you sure you want to remove selected item?', ['"trash" Remove', 'Cancel'], REMOVE_FUNCTION);

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

Използвайте го с `<ui-component name="confirm">`Когато компонентът все още не е зареден, jComponent Изтегляне на първия адрес в `DEF.fallback` (След това Componentator Източник: Питър Шерка Componentator Съставни съставки, лиценз на MIT.

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

<script>
	SETTER(true, 'confirm/show2', 'Do you want to remove React/Vue/Angular.js from your device?', ['"check-circle" OK #2BA433', 'Cancel'], function() {
		alert('Thank you for using of jComponent library');
	});
</script>
```
