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 422 posts 2334 karma points MVP 4x hq 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 2348 posts 14896 karma points MVP 8x c-trib
    Mar 09, 2019 @ 12:02
    Kevin Jump
    102

    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 422 posts 2334 karma points MVP 4x hq c-trib
    Mar 09, 2019 @ 12:36
    Andy Butland
    0

    Nice, thanks Kevin.

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jun 17, 2019 @ 10:51
    Dan Diplo
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies