Field
Introduction
Provided below are the attribute values pertaining to widgets.
๐ Fields with this icon are read-only fields that cannot be revised.
Name
Description
๐ id
Calls the widget id value
๐ API Explanation and Example
id
This calls the widgetโs id value.
Example
Display the widget id value.

let _widget = null;
// Activates function when q is pressed
// App.addOnKeyDown Description
App.addOnKeyDown(81, function (player) {
_widget = player.showWidget("sample.html","top",300,300);
App.sayToAll(`widget id: ${_widget.id}`)
});
Last updated
Was this helpful?