Copied to clipboard

Flag this post as spam?

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


  • Max 80 posts 437 karma points
    Sep 09, 2021 @ 18:37
    Max
    0

    displaying a umb-property-editor label

    I'm trying to use the umb-property-editor directive in an overlay. I have the model mostly correct. In my example I am generating a multipicker3. I can see in my markup that "hideLabel" : false is working, but the actual label is not loading.

    dialog/overlay controller:

    angular.module("umbraco").controller("carouselDialog.controller", function ($scope){
     var vm = this;
    
        vm.close = $scope.model.close;
        vm.submit = submit;
    
        $scope.model.carousel = {
            alias: "carouselimage",
            name: "carouselimage",
            label: 'Carousel Image',
            required: true,
            description: 'Grid Carousel picker',
            view: 'mediapicker3', // relatedlinks
            hideLabel: false,
            config: {
                validationLimit: {min:0, max:1},
                multiple: false,
            },
            value: {},
        };
    }
    

    dialog/overlay template:

    <div ng-controller="carouselDialog.controller as vm">
        <umb-editor-view ng-form>
            <umb-editor-header name="model.title"
                               name-locked="true"
                               hide-alias="true"
                               hide-icon="false"
                               hide-label="false"
                               hide-description="false"
                               label="blah">
            </umb-editor-header>
    
            <umb-editor-container>
                <umb-box>
                    <umb-box-content>
                        <umb-control-group>
                            <!--<span>{{model.carousel}}</span>-->
                            <umb-property-editor model="model.carousel" value="model.nftagrid.carousel" ng-required required></umb-property-editor>
                        </umb-control-group>
                        <umb-control-group>
                            <umb-property-editor model="model.itemLink" value="model.nftagrid.itemLink"></umb-property-editor>
                        </umb-control-group>
                    </umb-box-content>
                </umb-box>
            </umb-editor-container>
            <umb-editor-footer>
                <umb-editor-footer-content-right>
                    <umb-button type="button"
                                button-style="link"
                                label-key="general_close"
                                shortcut="esc"
                                action="vm.close()">
                    </umb-button>
                    <umb-button type="button"
                                button-style="action"
                                label-key="general_submit"
                                action="vm.submit(model)">
                    </umb-button>
                </umb-editor-footer-content-right>
            </umb-editor-footer>
        </umb-editor-view>
    
    </div>
    

    screen cap of what's rendered (highlighted line shows label is there, but no text):

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft