Unfortunately, your new directive doesn't know about the existing wijmo 
directive and vice versa.  You might ask the guys at wijmo for a solution.


On Wednesday, March 26, 2014 4:55:26 AM UTC-6, scarlatine wrote:
>
> 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<http://plnkr.co/edit/Z3qAbuAcwtUkTN2nOzLS?p=preview>based on a 
> test <http://plnkr.co/edit/8z9YEArjOFLjYHW6kLKo?p=preview> 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... 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to