Joint:parent

Returns the container or wrapper the child element is in.

Usage

joint:parent()

Returns

Name Type Description
element Container | Wrapper Parent UI element.

Examples

local overlay = crystal.Overlay:new();
local image = overlay:add_child(crystal.Image:new());
assert(image:joint():child() == image);
assert(image:joint():parent() == overlay);

This site uses Just the Docs, a documentation theme for Jekyll.