Class: FunctionsInterface

(abstract) FunctionsInterface()

Base class for all Pages and Content. Each element of a page shall be derived by this base class to assert this function set is always callable. Shall be treated as an interface creating instances of this class makes no sense.

Constructor

(abstract) new FunctionsInterface()

Source:

Methods

(abstract) addEventListeners()

adds the event listeners to the element that was set up with this.setup()
Source:

(abstract) afterPyodideLoaded()

Executes code that depends on Pyodide fully loaded. Is called after Pyodide is ready and makes changes to the element created with this.setup() that can only be active or made after Pyodide is loaded. Is called by PageManager as soon as Pyodide is ready.
Source:

setup() → {Element|DocumentFragment}

create the element that is added to the dom, if nothing is added to the dom return a DocumentFragment
Source:
Returns:
Type
Element | DocumentFragment

(abstract) setupEasterEggs()

Is called after the Page is usable by PageManager and is the set-up of funny functionality but not necessary for function of page.
Source:

(abstract) updateColor()

updates elements that need special color and are not effected by the bootstrap mode change
Source:

(abstract) updateLang()

updates language specific strings
Source: