Copied to clipboard

Flag this post as spam?

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


  • Aki 43 posts 214 karma points
    Feb 09, 2017 @ 12:28
    Aki
    0

    Keep Focus Grid Element

    im working on a plugin

    it uses a html file that includes a controller

    using a list $scope.control.ElementList adding a removing element works fine..

    and the Ng-repeat uses this ...

    in code i have a

        $scope.Delete = function () {    
             $scope.control.ElementList.splice(index, 1);
        }
    

    now after deleting a element the focus on the Grid element is lost ...

    How do i keep it in focus ??

  • Ronak Panchal 71 posts 230 karma points
    Feb 09, 2017 @ 14:31
    Ronak Panchal
    0

    Hello Aki,

    In .js File you can put that remove function

    $scope.Delete = function ($index) {    
             $scope.control.ElementList.splice($index, 1);
        }
    

    In html File i mean in Ng-repeat

    you can pass $index

    controllerName.Delete ($index)
    

    Hope this will help,

    Ronak Panchal.

  • Aki 43 posts 214 karma points
    Feb 15, 2017 @ 08:05
    Aki
    0

    yes your right and i already do this.. i need to keep the focus on the grid element i just created.. after i use the save on the page...

  • Joe Craddock 1 post 71 karma points
    Jun 11, 2018 @ 22:23
    Joe Craddock
    0

    Did you ever resolve this? Running into the same issue.

  • 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