j-Approve
- Singleton
- Werk met Bootstrap
- Ondersteunt het donkere mode
- Moduleer
Configuratie:
cancel{String} een label voor de annuleringsknop (default:Cancel)- NEW:
style{Nummer} stijl veranderen (ondersteunde stijl1(default) en2)
Methoden:
component.show(message, approve_button_label, [cancel_button_label], callback, [callback_cancel])
Gebruik:
SETTER('approve/show', message, 'Yes', function() {
});Een eenvoudige stijl van de knoppen
// "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);Gebruik het met <ui-component name="approve">Wanneer de component nog niet is geladen, jComponent Download het op eerste gebruik van het adres in DEF.fallback (De Componentator Schrijver: Peter Širka. bron: de Componentator Componenten repository, MIT licentie.
<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>