XLQP Gen1
ElementsAdvanced integrations

AddSoccer

Adds a soccer data view with leagues, refresh controls, and optional logos.

AddSoccer

What it does

Adds a soccer data view with leagues, refresh controls, and optional logos.

When to use it

Use it for sports dashboards that need current league information in the XLQP interface.

ElementFunction:AddSoccer(SoccerConfig)

SoccerTab:AddSoccer({
    Name = "Live Soccer",
    Height = 440,
    League = "FIFA World Cup",
    AutoRefresh = false,
    RefreshTime = 60,
    ShowLogos = true,
    Moveable = true,
    Callback = function(data)
        if type(data) == "table" and data.id then
            print("soccer match", data.id, data.shortName or data.name)
        elseif type(data) == "table" then
            print("soccer matches", #data)
        end
    end
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

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