GetAllWebUI: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllWebUI()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example ==..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get all web UI created for the client. Useful for loops.}} | ||
{{FuncSyntax|GetAllWebUI()}} | {{FuncSyntax|GetAllWebUI()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns a table of all web UIs created for the player.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
for k, v in pairs(GetAllWebUI()) do | |||
DestroyWebUI(v) | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:WebFunctions}} |
Latest revision as of 16:55, 26 February 2020
Description
Get all web UI created for the client. Useful for loops.
Syntax
GetAllWebUI()
Parameters
- This function has no parameters.
Return Value
- Returns a table of all web UIs created for the player.
Example
for k, v in pairs(GetAllWebUI()) do
DestroyWebUI(v)
end