Class: FaqRouter

mathex. FaqRouter

handles the faq navigation and rendering

new FaqRouter(faq) → {Object}

FAQ - Faq Router Class

Parameters:
Name Type Description
faq Object The mathex.Faq instance
Source:
Returns:
mathex.Faq instance
Type
Object

Methods

goto(index, layer)

Moves to another faq

Parameters:
Name Type Argument Description
index Number The index of the faq to go to
layer String <optional>
Whether to show the faq over a layer (if its value is 'layer') or not
Source:
Returns:
void

renderFaq(index)

Renders one single faq (question, answer)

Parameters:
Name Type Description
index Number the index of the faq to be rendered
Source:
Returns:
void

renderIndex()

Renders the faq index

Source:
Returns:
void

start()

Starts the execution of the faq

Source:
Returns:
void