Field

Introduction

Provided below are the attribute values pertaining to widgets.

🔒 Fields with this icon are read-only fields that cannot be revised.

NameDescription

🔒 id

Calls the widget id value

📚 API Explanation and Example

id

widget.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