forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdo-in-widget.lcdoc
More file actions
34 lines (22 loc) · 742 Bytes
/
do-in-widget.lcdoc
File metadata and controls
34 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Name: do in widget
Type: command
Syntax: do <script> in <widget>
Summary:
Executes a list of statements within a widget.
Introduced: 8.0
OS: mac, windows, linux, ios, android
Platforms: desktop, mobile
Example:
-- Use JavaScript to hide "myButton" in the page displayed in a browser widget.
do "document.getElementById('myButton').hidden = 'hidden'" in widget "myBrowser"
Parameters:
script (string):
The code to execute within the widget.
widget:
A widget reference
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.
References: do (command), widget (object)