clientDefs -menu - buttons - target _blank ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wtconseil
    Active Community Member
    • Apr 2015
    • 335

    clientDefs -menu - buttons - target _blank ?

    Hi there

    in clientDefs <entity> .json

    I'd like to add a new button like that :

    PHP Code:
    "menu": {
    "list": {
    "buttons": [
    {
    "label": "Dashboard",
    "link": "?entryPoint=Dashboard",
    "acl": "read",
    "style": "default",
    "aclScope": "xxxxxxx"
    }
    ]
    }
    }, 
    
    Is there a way to open that link in a new window ? adding an extra attribute like target="_blank" ?
    Thanks
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Remove link parameter, add action and open new window in your action

    Comment

    • wtconseil
      Active Community Member
      • Apr 2015
      • 335

      #3
      meaning that i need to write my custom JS file ?

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        yes..

        Comment

        • wtconseil
          Active Community Member
          • Apr 2015
          • 335

          #5
          ok thanks tanya ! i was thinking about that but wondering if there were any other tricks to avoid writing that JS file

          Comment

          Working...