Main page module. Main page API is described in detail in Main Page article.
add (key:_MainBlockType, link:_LinkParams, ?pos:Int):Void
Adds link to one of main page blocks.
Parameters:
key
Main page block ID.
link
Link parameters.
pos
Link position in list.
addFunc (key:_MainBlockType, func:Void ‑> String, ?pos:Int):Void
Adds function returning string to one of main page blocks.
Parameters:
key
Main page block ID.
func
Method returning string to show.
pos
Link position in list.
addHTML (key:_MainBlockType, str:String, ?pos:Int):Void
Adds raw HTML to one of main page blocks.
Parameters:
key
Main page block ID.
str
Raw HTML string.
pos
Link position in list.
getBlock (key:_MainBlockType):Array<_LinkParams>
Returns the full array of links in the given main page block.
Parameters:
key
Main page block ID.
Returns:
Array of sub-blocks.
replace (key:_MainBlockType, link:_LinkParams, pos:Int):Void
Replaces link on one of main page blocks.
Parameters:
key
Main page block ID.
link
Link parameters.
pos
Link position in list.
inline setTitle (key:_MainBlockType, title:String):Void
Sets block title.
Parameters:
key
Main page block ID.
title
Block title.