XLQP Gen1
ElementsContent & layout

CreatePinnedList

Creates a list that separates pinned items from the rest.

CreatePinnedList

What it does

Creates a list that separates pinned items from the rest.

When to use it

Use it when important or favorite entries must stay easy to reach.

ElementFunction:CreatePinnedList(ListConfig)

local FavoriteTools = LeftGroup:CreatePinnedList({
    Title = "All tools",
    PinnedTitle = "Pinned tools",
    Items = {
        {Name = "Auto Farm", Description = "Farming automation", Icon = "sparkles", Pinned = true},
        {Name = "Player ESP", Description = "Visual player helper", Icon = "eye"},
        {Name = "Server Hop", Description = "Find another server", Icon = "server"}
    },
    Callback = function(name, pinned)
        print("pinned list", name, pinned)
    end
})

Behavior and return value

Store the returned controller or object when later code needs to update its state, call its methods, or close it.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.