shiv19 / nativescript-cfalert-dialog

CFAlertDialog Wrapper for NativeScript
Apache License 2.0
42 stars 21 forks source link

Font awesome #40

Open vnavarrou opened 3 years ago

vnavarrou commented 3 years ago

First: This plugin is awesome! Second: This is not an issue at all, but I can't find any discussion about using a Font Awesome icon instead of string text in a button. ¿How could I include a button with an icon?

Thank you @shiv19 for your support.

shiv19 commented 3 years ago

Hi @vnavarrou unfortunately the library used by this plugin does not support changing font family https://github.com/Codigami/CFAlertDialog/issues/15#issuecomment-403376553

The font family is baked into the code here https://github.com/Codigami/CFAlertDialog/blob/24af2ac48ccddee8443a7ac59866231680111c4b/cfalertdialogdemo/src/main/res/layout/dialog_footer_layout.xml#L82

if the lib can by modified to support different fonts, this would be possible.

For all other dialog needs where I want custom fonts in the dialog, I would create a dialog with plain nativescript layouts instead of using this plugin.