Home Reference Source
public class | source

Lesson

Extends:

react~Component → Lesson

React component for navigating the course lessons and displaying lesson name and description

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Returns wheter the text in the editor match with the savedText

public

Load previous lesson.

public

Load next lesson.

public

renderBtns: *: *

public

state: {"currentProgress": *}

Method Summary

Public Methods
public

render(): *

Public Constructors

public constructor() source

Public Members

public hasEditorChanged: boolean: * source

Returns wheter the text in the editor match with the savedText

Return:

boolean

true if savedText is different from text in editor, false otherwise.

public lastLesson: * source

Load previous lesson. Give a warning if there's any changes in the editor

public nextLesson: * source

Load next lesson. Give a warning if there's any changes in the editor

public renderBtns: *: * source

Return:

*

DOM Elements of button that go to previous or

public state: {"currentProgress": *} source

Public Methods

public render(): * source

Return:

*

Render DOM elements of course lessons