Fandom

WoWWiki

API KBArticle BeginLoading

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < KBArticle BeginLoading

Starts the article load process.

KBArticle_BeginLoading(id, searchType)

Parameters Edit

Arguments Edit

(id, searchType)
id 
Integer - The article's ID
searchType 
Integer - 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

function KnowledgeBaseArticleListItem_OnClick()
  local searchText = KnowledgeBaseFrameEditBox:GetText();
  local searchType = 2;
  if (searchText == KBASE_DEFAULT_SEARCH_TEXT or searchText == "") then
    searchType = 1;
  end
  KBArticle_BeginLoading(this.articleId, searchType);
end

From Blizzard's KnowledgeBaseFrame.lua (l. 529 ff.)

Also on Fandom

Random Wiki