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 ==..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get all web UI created for the client. Useful for loops.}}


{{FuncSyntax|GetAllWebUI()}}
{{FuncSyntax|GetAllWebUI()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a table of all web UIs created for the player.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
for k, v in pairs(GetAllWebUI()) do
    DestroyWebUI(v)
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:WebFunctions}}

Latest revision as of 16:55, 26 February 2020

GetAllWebUI

Type: Function
Context: Client
Introduced: v1.0

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

See also