Copied to clipboard

Flag this post as spam?

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


  • Darren Hunter 140 posts 232 karma points
    Sep 22, 2023 @ 11:55
    Darren Hunter
    0

    dropdownFlexible Config Values

    Hi,

    Can some one advise what AngulerJS needs to be created to use dropdownFlexible.

    I been playing with this with an Array and it seems to work, but when I try and use a key Value Pare it not working.

    Here my Javascript:

    $scope.buildData = function () { var newItems = []; newItems.push({ key:1, value:"One" }); newItems.push({ key:2, value:"Two" }); newItems.push({ key:3, value:"Three" });

            console.log("Build Data:", newItems);
    
            return newItems;
        }
    
    
        $scope.locationName = {
            value: $scope.dropdwonvaluea,
            view: "dropdownFlexible",
            config: {
                items: $scope.buildData(),
                multiple:false
            }
        };
    

    I need the drop down to have ID=1 Title = One ID=2 Title = Two Ect

    Thanks Darren

Please Sign in or register to post replies

Write your reply to:

Draft