We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, how I can apply style in my component. I try, style: "center"
closeModule() { confirmAlert({ title: "Alerta", message: "Desea salir sin aplicar los cambios ?", style: "center", buttons: [ { label: "Si", onClick: () => this._closeModule() }, { label: "No", onClick: () => "" } ], closeOnEscape: false, closeOnClickOutside: false }); }
The text was updated successfully, but these errors were encountered:
Hi! I was able to do it by this way (I use bootstrap and typescript):
confirmAlert({ (...) }) setTimeout(() => { const bodyElements: HTMLCollectionOf<Element> = document.getElementsByClassName('react-confirm-alert-body') bodyElements[0]?.classList?.add('text-center') bodyElements[0]?.firstElementChild?.classList?.add('h3') bodyElements[0]?.firstElementChild?.classList?.add('mb-3') const buttonGroupElements: HTMLCollectionOf<Element> = document.getElementsByClassName('react-confirm-alert-button-group') buttonGroupElements[0]?.classList?.add('d-block') buttonGroupElements[0]?.classList?.add('m-auto') buttonGroupElements[0]?.classList?.add('mt-4') buttonGroupElements[0]?.firstElementChild?.classList?.add('bg-danger') }, 200)
Sorry, something went wrong.
No branches or pull requests
hi, how I can apply style in my component.
I try,
style: "center"
The text was updated successfully, but these errors were encountered: