ForgeComponenti
it

Componenti

j-Approve

jComponent 20 · jcomponent@20 component Esempio caricato con jComponent 20
  • 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:

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

});

Un semplice stile di pulsanti

// "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.

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>