j-Approve
- 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 stile1(default) e2)
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.
<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>