0
I have an action originated by the plugin Sweetalert that needs a button with text well extended because it is a very sensitive option and can lead to errors.
swal({
title: data['title'],
text: data['msg'],
type: 'warning',
showConfirmButton: true,
showCancelButton: true,
closeOnConfirm: true,
confirmButtonText: 'Confirmar exclusão (Essa ação não é recomendada \n, <small>Deletar este colaborador pode acarretar em inconsistencias nos dados anteriores, você pode torna-lo inativo, ou registrar um desligamento de funcionário.</small>.)',
cancelButtonText: 'Cancelar e voltar'
},
function (isConfirm) {
alert();
});
My question is basically:
How to make the plugin read past HTML to 'confirmButtonText' ? Or you can’t do it ?
It is not common for a button to have such a long text. Have you ever thought to put on the button only the text "Confirm Deletion" and display the warning about the action in the body of the alert?
– Renato Diniz
It is not possible, because in the body I already have a text describing some things, this is a very critical function of the system, I need the detailed description.
– AnthraxisBR
See Sweetalert2, added HTML support on the buttons: https://limonte.github.io/sweetalert2/
– Renato Diniz