Files
Basalt/docs/objects/Basalt/removeFrame.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

509 B

basalt.removeFrame

Removes the base frame by it's id. This only works for base-frames.

Parameters:

  1. string id

Usage:

  • Removes the previously created frame with id "myFirstFrame"
local main = basalt.createFrame("firstBaseFrame")
local main2 = basalt.createFrame("secondBaseFrame")
main:addButton()
    :setText("Remove")
    :onClick(function()
        basalt.removeFrame(main2:getName()) -- you can use main2:getName() to find out the id or just use "secondBaseFrame"
    end)