Closed stevenspiel closed 5 years ago
What would it take to include an icon image next to the text in the buttons? Maybe something like this?:
let options: DialogOptions = { dialogStyle: CFAlertStyle.BOTTOM_SHEET, title: '', buttons: [ { text: 'Edit', buttonStyle: CFAlertActionStyle.POSITIVE, icon: 'res://edit', iconPosition: CFAlertButtonIconPosition.LEFT, onClick: (() => console.log('Edit')) }, { text: 'Delete', buttonStyle: CFAlertActionStyle.NEGATIVE, icon: 'res://trash', iconPosition: CFAlertButtonIconPosition.RIGHT, onClick: (() => console.log('Delete')) } ] }
It's not trivial as the underlying library doesn't support it.
ok. thanks!
What would it take to include an icon image next to the text in the buttons? Maybe something like this?: