j-Approve
- singleton
- Práce s Bootstrap
- Podporuje tmavý režim
- Modalová
Konfigurace:
cancel{String} značka pro tlačítko zrušení (předvolené:Cancel)- NEW:
style{Number} změny stylu (podporované styl1(default) a2)
Metody:
component.show(message, approve_button_label, [cancel_button_label], callback, [callback_cancel])
Použití:
SETTER('approve/show', message, 'Yes', function() {
});Jednoduchý stylování tlačítek
// "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);Použijte ji s <ui-component name="approve">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.
<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>