← WoW API < KBArticle BeginLoading
Parameters
Arguments
Returns
Details
Example
Starts the article load process.
KBArticle_BeginLoading(id, searchType)
Parameters
Edit
Arguments
Edit
- id (number) - The article's ID
- searchType (number) - Search type for the loading process.
Returns
Edit
- nil
Details
Edit
- The 'searchType' can be either 1 or 2. 1 is used if the search text is empty, 2 otherwise.
Example
Edit
From Blizzard's KnowledgeBaseFrame.lua (l. 529 ff.):
function KnowledgeBaseArticleListItem_OnClick(frame) local searchText = KnowledgeBaseFrameEditBox:GetText() local searchType = 2 if (searchText == KBASE_DEFAULT_SEARCH_TEXT or searchText == "") then searchType = 1 end KBArticle_BeginLoading(frame.articleId, searchType) end
Community content is available under CC-BY-SA
unless otherwise noted.