Copied to clipboard

Flag this post as spam?

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


  • Venkatesh K 14 posts 84 karma points
    May 25, 2018 @ 00:16
    Venkatesh K
    0

    Button Property EditorButton

    Hi Team

    I have a query. I am trying to create a Custom Property editor for a button. I am able to create one field using $scope.model.value. But if I want to add an additional field for link I am not able to. Can someone help me on this?

    Please find the code below

    HTML:

    Button

    enter image description here JS

    angular.module('umbraco').controller('buttonController', function ($scope) {

    console.log($scope.model);
    $scope.button = {}
    $scope.model = $scope.model || "default value";
    $scope.button.name = $scope.button.name || "default value";
    $scope.button.link = $scope.button.link || "default value";
    

    });

    model.value is working as expected but other properties are not working as expected. If there is any built in editor for button (with name, link) please let me know. It should be similar to RelatedLinks property but just one value. I tried RelatedLinks restricitng it to one value but I need a separate property editor. I am stuck here. Your help would be much appreciated.

  • 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