ForgeComponenti
it

Componenti

j-Confirm

jComponent 20 · jcomponent@20 component Esempio caricato con jComponent 20
  • singolo
  • Lavorare con Bootstrap
  • Sviluppo - Modo oscuro
  • Modalità

Utilizzo:

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

Un semplice stile di pulsanti

// "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);

Utilizzare con <ui-component name="confirm">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.

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>