Open link in new window

Asked by Steve Lee
3 years ago.

Hi :-)

In my scheduler I've added in a new menu item from the right click menu:

{text: "Job Card", onClick: args => location.href = args.source.data.Filelocation},

It works, opening a job card for the scheduled item. However, I need it to open in a new browser tab, or in a popup window. I've tried a million and one combinations of window.open but cannot get this to work. Can you help?

Thank you.

Comment posted by Dan Letecky [DayPilot]
3 years ago.

Another option would be to use DayPilot.Modal which wouldn't open it in a new tab/window but in a modal dialog in the same page. It can display a special page (in an iframe) using showUrl() method:

https://api.daypilot.org/daypilot-modal-showurl/

Comment posted by Steve Lee
3 years ago.

Ah! Thank you :-)

I was almost there I had that almost correct accept I had window.open args =

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.