NathanWalker / nativescript-fancyalert

Fancy alerts for NativeScript.
Other
147 stars 38 forks source link

More documentation TNSFancyAlertButton? #61

Closed fransyozef closed 5 years ago

fransyozef commented 5 years ago

Are there more properties on a TNSFancyAlertButton? For example, how can I set the background-color?

NathanWalker commented 5 years ago

New with v3.0.5 you can now use it's applyStyle(btn: SLCButton) => void method which hands you the underlying native fancy alert button which you can style with any standard iOS properties like backgroundColor etc. See the docs just added about it here: https://github.com/NathanWalker/nativescript-fancyalert/commit/878995e18d9321b0109869753f60ec6c5a6d3089

adfdev commented 5 years ago

Have tried with this code: applyStyle: btn => { btn.buttonFormatBlock = () => { return new NSDictionary( [new Color("#ffffff").ios], ["backgroundColor"] ); }; }

but not work, I developed in nativescript-vue