Home Reference Source Repository
public class | source

ContentCourseDisplay

Extends:

react~Component → ContentCourseDisplay

Method Summary

Public Methods
public

Invoked immediately before a component is unmounted and destroyed, to update our state to get vendor courses

public

Coverts json to array

public

render(): html

Loads the webpage for course display

public

saveACourse(courseName: *)

Save a coure for course Detail

Public Methods

public componentWillMount() source

Invoked immediately before a component is unmounted and destroyed, to update our state to get vendor courses

public jsonToArray(json: object): object source

Coverts json to array

Params:

NameTypeAttributeDescription
json object

Return:

object

arr - return array from converted json object

public render(): html source

Loads the webpage for course display

Return:

html

returns avaiable courses

public saveACourse(courseName: *) source

Save a coure for course Detail

Params:

NameTypeAttributeDescription
courseName *