j-Approve
- singlar
- Arbeta med Bootstrap
- Stöd för dark mode
- Modellt
Konfigurera:
cancel{String} en etikett för att avbryta knappen (default:Cancel)- NEW:
style{Number} ändrar stil (stödda stil1(default) och2)
Metoder:
component.show(message, approve_button_label, [cancel_button_label], callback, [callback_cancel])
Användning:
SETTER('approve/show', message, 'Yes', function() {
});En enkel styling av knappar
// "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);Använd den med <ui-component name="approve">När komponenten ännu inte är laddad, jComponent Ladda ner den första gången från adressen i DEF.fallback (en av Componentator Författare: Peter Širka. källa: The Componentator Komponenterna i lager, MIT licens.
<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>