Wrapper:remove_child

Removes the child element from this wrapper.

This method emits an error if the wrapper has no child element.

Usage

wrapper:remove_child()

Examples

local rounded_corners = crystal.RoundedCorners:new();
local image = rounded_corners:set_child(crystal.Image:new());
rounded_corners:remove_child();
assert(image:parent() == nil);

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