Hi,
I am a beginner with AngularJS. I would like to add an icon on the left of the title of a wij-dialog from Wijmo. It is possible with jQuery:
$(".ui-dialog-title").html("<img style=\"margin-left: -.75em; margin-right: 0.5em\" width=\"16\" src=\" sendEmail.ico \" />" + $(".ui-dialog-title").html());
I think it should be possible to add a directive (dialog-icon) in the wij-dialog directive, something like that:
<wij-dialog title="Please confirm" dialog-icon="sendEmail.ico" />
The trouble is that I don't know how I can get the generated HTML by wij-dialog to use it in my directive to add the icon. I wrote a
plunk based on a
test I wrote (a directive that changes the title of another directive).
Can someone tell me how to do this with a directive or a better way to extend an existing directive?
Thanks...