mNo edit summary |
Ravas46950@legacy41566517 (talk | contribs) (Updated to match the current API boilerplate.) |
||
Line 1: | Line 1: | ||
{{sd|No content.|sig=--{{#ifeq:sig|sig|[[User:Pcj|Pcj]] ([[User talk:Pcj|T]]•[[Special:Contributions/Pcj|C]])|}} 02:24, 27 June 2007 (UTC)}} |
{{sd|No content.|sig=--{{#ifeq:sig|sig|[[User:Pcj|Pcj]] ([[User talk:Pcj|T]]•[[Special:Contributions/Pcj|C]])|}} 02:24, 27 June 2007 (UTC)}} |
||
− | {{widgetmethod}} |
+ | {{widgetmethod}} __NOTOC__ |
− | {{stub/api}} |
||
+ | Gets the children of a frame. |
||
− | Sample code provided by Iriel: |
||
+ | child1, child2, ..., childN = Frame:GetChildren() |
||
+ | |||
+ | == Arguments == |
||
+ | None |
||
+ | |||
+ | |||
+ | == Returns == |
||
+ | :(child1, child2, ...) |
||
+ | :; child1 : [[Frame]] - The first child of the frame |
||
+ | :; child2 : [[Frame]] - The second child of the frame |
||
+ | :; ... |
||
+ | :; childN : [[Frame]] - The last child of the frame |
||
+ | |||
+ | |||
+ | == Example == |
||
local kids = { QuestLogFrame:GetChildren() }; |
local kids = { QuestLogFrame:GetChildren() }; |
||
− | for _,child in ipairs(kids) do |
+ | for _, child in ipairs(kids) do |
− | + | -- stuff |
|
end |
end |
Revision as of 15:07, 27 June 2007
This article is marked for speedy deletion.
|
The API is no longer being updated here until further notice. |
Gets the children of a frame.
child1, child2, ..., childN = Frame:GetChildren()
Arguments
None
Returns
- (child1, child2, ...)
Example
local kids = { QuestLogFrame:GetChildren() }; for _, child in ipairs(kids) do -- stuff end