The issue is; this opens the view in a panel. I'd like to open a URL in a new tab/window so I can call the print dialog and close the tab/window again.
Any help will be much appreciated!
I don't think you can, but maybe you can put your window/tab-opening code in the dialog that opens, and programmatically close the dialog, when the window/tab has opened.
Documentation/instructions on how to use the umbEditorHeader directive's menu property
Hi,
I'm looking for documentation or instructions on how to use the umbEditorHeader directive's menu property.
I have this for now:
The issue is; this opens the view in a panel. I'd like to open a URL in a new tab/window so I can call the print dialog and close the tab/window again.
Any help will be much appreciated!
I don't think you can, but maybe you can put your window/tab-opening code in the dialog that opens, and programmatically close the dialog, when the window/tab has opened.
The issue is pop-up blockers. You have to be inside an action handler to be able to open a new window :-(
https://stackoverflow.com/a/2587692/510149
Do you have to have it in a window? Couldn't it be an iframe instead?
Anyways - Kevin Jump just posted this blog article that might help you (haven't read it through though, but sounds pretty much like your problem)
https://blog.jumoo.co.uk/2021/opening-infinite-actions/
Not really unfortunately, I'm talking about the menu actions in the umbEditorHeader, which is this one:
Pretty sure it's the same. On a content node you can open the action menu either in the header, or by right clicking the tree.
I guess you're right. Unfortunately, the
jsAction
solution doesn't work, because an error is triggered:The source object does not contain the property icon
I found the source of this error here: https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Web.UI.Client/src/common/services/util.service.js#L178
So I guess it's trying to pass the current item (in this case a Vendr order) to the handler, but it doesn't have an
icon
property.No clue how I could work around this tbh.
is working on a reply...