← All built-ins / ui_enable()

ui_enable()

ui_enable(...$args): int

Parameters

NameTypeDescription
$handleintcontrol handle
$enabledbooltrue = enable, false = disable (grayed out)

Return value

Enables or disables the control.

Example

echo "ui_enable($btn, false); // gray out";
ui_enable($btn, false); // gray out

This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.

See also

ui_ctrl_show()