Looking to port over a property editor into version 8, where I've used dialogService. Don't see this in V8 (there's navigationService but looks like that's intended for tree operations).
Does anyone know the equivalent or replacement in V8 please?
Specifically I've got this piece of code that's failing as dialogService is no longer injected:
codewise, it's near identical to your sample. there is a size value that you can set to "small" to stop the dialog taking up the full width (so remaining same size as it does in v7)
dialog.service.js in Umbraco 8?
Looking to port over a property editor into version 8, where I've used
dialogService
. Don't see this in V8 (there'snavigationService
but looks like that's intended for tree operations).Does anyone know the equivalent or replacement in V8 please?
Specifically I've got this piece of code that's failing as
dialogService
is no longer injected:dialogService.open( { template: templateUrl, callback: function(data) { ... }, closeCallback: function() { ... }, });
Thanks
Andy
Hi Andy,
The editorService has replaced the dialog service, I don't think it's made it in to the documentation yet - but the code has the doc info on it.
https://github.com/umbraco/Umbraco-CMS/blob/dev-v8/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js
codewise, it's near identical to your sample. there is a size value that you can set to "small" to stop the dialog taking up the full width (so remaining same size as it does in v7)
Kevin
Nice, thanks Kevin.
Just to add to what Kevin said, the official docs have now been updated and the documentation for Editor Service can be found here:
https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.services.editorService
is working on a reply...