WoW API: KBArticle BeginLoading

From AddOn Studio
Revision as of 10:30, 1 May 2008 by WoWWiki>Borlox (New page: {{wowapi}} __NOTOC__ Starts the article load process. KBArticle_BeginLoading(id, searchType) == Parameters == === Arguments === :(id, searchType) :;id : Integer - The article's ID :;se...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < KBArticle BeginLoading

Starts the article load process.

KBArticle_BeginLoading(id, searchType)

Parameters

Arguments

(id, searchType)
id
Integer - The article's ID
searchType
Integer - Search type for the loading process.

Returns

nil

Details

  • The searchType can be either 1 or 2. 1 is used if the search text is empty, 2 otherwise.

Example

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.)