Copied to clipboard

Flag this post as spam?

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


  • Ron G 41 posts 137 karma points
    Nov 16, 2015 @ 10:46
    Ron G
    0

    Custom Tree Event After a Node Has Rendered

    I've created a custom tree and I'm trying to find the angular event which fires after a node has been rendered.

    What I would like to do is run some javascript which appends some HTML after the node:

    <i class="icon umb-tree-icon sprTree icon-document" title="#"></i>
    <a ng-click="select(node, $event)">NODE ITEM</a>
    [HTML GOES HERE]
    

    Where would this go in my AngularJS code?

    function customDialogController($scope, dialogService) {
    
        $scope.dialogEventHandler = $({});
        $scope.dialogEventHandler.bind("treeNodeSelect", nodeSelectHandler);
    
        function nodeSelectHandler(ev, args) {
            args.event.preventDefault();
            args.event.stopPropagation();
            $scope.submit(args.node.id);
        };
    };
    angular.module("umbraco").controller("Umbraco.CustomDialogController", customDialogController);
    
  • Ron G 41 posts 137 karma points
    Nov 18, 2015 @ 15:40
    Ron G
    0

    Bump...

Please Sign in or register to post replies

Write your reply to:

Draft