j-Approve
- Singleton
- Praca z Bootstrap
- Wsparcie - mody ciemne
- Moduł
Konfiguracja:
cancel{String} etykieta przycisk odwołania (default:Cancel)- NEW:
style{Number} zmienia styl (podporowany styl1(default) i2)
Metody:
component.show(message, approve_button_label, [cancel_button_label], callback, [callback_cancel])
Używanie:
SETTER('approve/show', message, 'Yes', function() {
});Prosty stylizacja przycisków
// "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);Użyj go z <ui-component name="approve">Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu DEF.fallback (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja 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>