Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy Butland 355 posts 1894 karma points MVP 2x c-trib
    Mar 09, 2019 @ 10:47
    Andy Butland
    0

    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'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:

    dialogService.open( { template: templateUrl, callback: function(data) { ... }, closeCallback: function() { ... }, });

    Thanks

    Andy

  • Kevin Jump 1384 posts 8699 karma points MVP 2x c-trib
    Mar 09, 2019 @ 12:02
    Kevin Jump
    101

    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

  • Andy Butland 355 posts 1894 karma points MVP 2x c-trib
    Mar 09, 2019 @ 12:36
    Andy Butland
    0

    Nice, thanks Kevin.

Please Sign in or register to post replies

Write your reply to:

Draft