To change text sizes within the alert box, we suggest you try to change the following CSS setting:
.swal2-popup {
font-size: 1.6rem !important;
}
The plug-in also supports text messages. You can set them in the global component settings or per alert.
Text messages are supported in the following options :
- Title
- Message
- Confirm button label
- Footer
- Custom options
For this sample application we used following text messages :
UCSWAL2.ALERT.TITLE > "Alert main message title!"
UCSWAL2.ALERT.TEXT > "You can also have sub-message and <strong>use HTML</strong>."
UCSWAL2.ALERT.FOOTER > "<a href="https://united-codes.com/index.html"> United Codes </a> footer sample."
UCSWAL2.ALERT.OK > "OK"
UCSWAL2.YES > "Yes"
UCSWAL2.NO > "No"
Message Substitutions can be used as replacement parameters. Message substitution must be separated with a comma(,).
The plug-in supports up to 4 parameters. Text and text messages get populated with specified entities.
For example :
We set :
as title "UCSWAL2.ALERT.TITLE" > "Welcome %0, would you like to %1?"
as message substitutions we specify "&APP_USER.,dance".
The result will be: "Welcome APEX_PUBLIC_ROUTER, would you like to dance?"