Widget API: Frame:IsFrameType

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Frame IsFrameType to API Frame IsFrameType without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Widget API ← Frame < IsFrameType

Synopsis[edit]

boolean isType = Frame:IsFrameType("typeName");

Description[edit]

Frame:IsFrameType() returns true if the frame is of type typeName, or a subtype of typeName, false if not.

Examples[edit]

local isButton = getglobal("QuestLogCollapseAllButton"):IsFrameType("button");

The above should return true.