CreateAccordion
This compatibility method behaves like CreateFAQ. Creates an accordion-style list of questions and answers. It is kept so scripts written with the older CreateAccordion name continue to work.
CreateAccordion
Compatibility alias
CreateAccordion is an alternate name for CreateFAQ. New code can use CreateFAQ.
What it does
This compatibility method behaves like CreateFAQ. Creates an accordion-style list of questions and answers. It is kept so scripts written with the older CreateAccordion name continue to work.
When to use it
Use it for help content where only one or a few answers should be expanded at a time. Prefer CreateFAQ in new code so the method name matches the current API.
ElementFunction:CreateAccordion(FAQConfig)
local Result = Section:CreateAccordion({
Name = "Example",
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to CreateFAQ, so its options, callbacks, and returned value follow the canonical method.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.
Related reference
AddVinylPlayer
This compatibility method behaves like AddDiscPlayer. Adds a disc-style audio player connected to a playlist or media controller. It is kept so scripts written with the older AddVinylPlayer name continue to work.
CreateAreaChart
This compatibility method behaves like CreateChart. Creates a configurable line or filled chart with a bounded point history. It is kept so scripts written with the older CreateAreaChart name continue to work.