ElementsControls
CreateFlipButton
Creates a two-sided button that flips between front and back content.
CreateFlipButton
What it does
Creates a two-sided button that flips between front and back content.
When to use it
Use it for reveal interactions or controls with two related faces.
ElementFunction:CreateFlipButton(FlipConfig)
local FlipDemo = LeftGroup:CreateFlipButton({
Front = "Hover me",
Back = "Now click me",
Callback = function(text, showingBack)
print("flip button", text, showingBack)
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.