Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 394 posts 1477 karma points
    Feb 28, 2020 @ 08:37
    Paul de Quant
    0

    umb-overlay options

    Hi,

    Can anyone tell me if its possible to rename the buttons in an umb-overlay?

    I'm using the latest version of Umbraco 7.

    <umb-overlay ng-if="vm.overlay.show"
                 model="vm.overlay"
                 view="vm.overlay.view"
                 position="right"></umb-overlay>
    

    Are there any additional properties that can be set in the code above?

    I need to rename the 'Close' and 'Submit' buttons.

    Thanks

  • Paul de Quant 394 posts 1477 karma points
    Feb 28, 2020 @ 09:12
    Paul de Quant
    100

    Found it.

    Needed to change it in my overlay code:

                vm.overlay = {
                title: "",
                subtitle: "",
                view: "/App_Plugins/",
                editModel: "",
                show: true,
                submitButtonLabel: "SUBMIT BUTTON TEXT",
                closeButtonLabel: "CLOSE BUTTON TEXT",
                submit: function (model) {
                    vm.overlay.show = false;
                    vm.overlay = null;
                },
                close: function (oldModel) {
                    vm.overlay.show = false;
                    vm.overlay = null;
                }
            };
    
  • 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