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 403 posts 1520 karma points
    Feb 28, 2020 @ 08:37
    Paul de Quant
    0

    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 403 posts 1520 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;
                }
            };
    
Please Sign in or register to post replies

Write your reply to:

Draft