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

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

Was this helpful?