Text:set_text

Sets the text to display.

Usage

text:set_text(value)

Arguments

Name Type Description
value string | number Text to display.

Examples

local text = crystal.Text:new();
text:set_text("Welcome aboard!");
local text = crystal.Text:new();
text:set_text(56);

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