OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34620
    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
  • #34621

    Vova Soroka
    Participant

    Hello infocurci,

    For now you can try

    or

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

    #34622
    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)

The forum ‘OroPlatform – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No