do in widget

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
do <script> in <widget>
Summary

Executes a list of statements within a widget.

Introduced8.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
script

The code to execute within the widget.

widget

A widget reference

Example
-- Use JavaScript to hide "myButton" in the page displayed in a browser widget.
do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser"
RelatedCommand: do
Object: widget
Description

Use the do in widget command to execute statements in a widget. LiveCode sends a "OnDo" message with script as parameter to the widget, which can then handle that messages to run the code appropriately.