WoW:API KBSetup BeginLoading: Difference between revisions
Jump to navigation
Jump to search
(New page: {{wowapi}} __NOTOC__ <div style="float: right"><small>'''Main Page'''</small></div> Starts the loading of articles. KBSetup_BeginLoading(articlesPerPage, currentPage) ...) |
m (Move page script moved page API KBSetup BeginLoading to WoW:API KBSetup BeginLoading without leaving a redirect) |
(No difference)
| |
Latest revision as of 04:46, 15 August 2023
← WoW API < KBSetup BeginLoading
Starts the loading of articles.
KBSetup_BeginLoading(articlesPerPage, currentPage)
Parameters
Arguments
- (articlesPerPage, currentPage)
- articlesPerPage
- Integer - Number of articles shown on one page.
- currentPage
- Integer - The current page (starts at 1).
Returns
- nil
Example
In KnowledgeBaseFrame_OnShow():
KBSetup_BeginLoading(KBASE_NUM_ARTICLES_PER_PAGE, KBASE_CURRENT_PAGE)
From Blizzard's KnowledgeBaseFrame.lua (l. 51)
Details
- This will start the article loading process and return immediately.
- When all articles are loaded the event KNOWLEDGE_BASE_SETUP_LOAD_SUCCESS is fired.
- If an error occurs in the loading process, the event KNOWLEDGE_BASE_SETUP_LOAD_FAILURE is fired.