import ContentCourseDisplay from 'learnenergy401/component/Profile/ContentCourseDisplay.js'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 |
jsonToArray(json: object): object 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:
| Name | Type | Attribute | Description |
| 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:
| Name | Type | Attribute | Description |
| courseName | * |