XLQP Gen1
ElementsControls

AddDependencyBox

Adds content whose enabled or visible state depends on another control or predicate.

AddDependencyBox

What it does

Adds content whose enabled or visible state depends on another control or predicate.

When to use it

Use it to reveal advanced settings only when their parent feature is enabled or a required value matches.

ElementFunction:AddDependencyBox(DependencyConfig)

local Result = Section:AddDependencyBox({
    Name = "Example",
})

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.