ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by infocurci infocurci 2 years, 8 months ago.

  • Creator
    Topic
  • #6968
    infocurci
    infocurci
    Participant

    Hello,
    I need to create a Ui button that open his link to new window.
    I tried this code:

    and this jquery:

    but it can’t work because the “a” attribute is already managed by other script.
    How I can set the “blank” attribute?
    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #6969

    Vova Soroka
    Oro Core

    Hello infocurci,

    For now you can try

    or

    Also feel free to contribute an improvement to UI.button macro to allow specifying target attribute.

    #6974
    infocurci
    infocurci
    Participant

    Thanks!
    I tried the second option. It not work fine (open the link twice: on new window and on parent window) but I solved it with this solution:

    It’s possible duplicate this behavior, on a link of a datagrid?
    On mouseover on a row of my datagrid, I see some options/icons (view, update, trash…) . I added a custom option (“type: url”). It works fine but I need to open it on a new window.
    How I can open this link on _blank?

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.