CourseList
Extends:
react~Component → CourseList
Constructor Summary
Public Constructor | ||
public |
constructor(props: *) constuctor of courseList |
Member Summary
Public Members | ||
public |
state: * |
Method Summary
Public Methods | ||
public |
Called dom elements is mounted, set focus on search bar |
|
public |
called before dom elements is mounted, fetch course |
|
public |
jsonToArray(json: object): Array converts json object to an array of its contents |
|
public |
render(): html renders the display for the current page. |
|
public |
saveACourse(courseName: object) save a course |
|
public |
searchUpdated(term: string) update search term after user imput |
Public Constructors
public constructor(props: *) source
constuctor of courseList
Params:
Name | Type | Attribute | Description |
props | * |
Public Members
public state: * source
Public Methods
public jsonToArray(json: object): Array source
converts json object to an array of its contents
Params:
Name | Type | Attribute | Description |
json | object | takes a json object |
public render(): html source
renders the display for the current page. displays courses
Return:
html | if there is a courselist return the list |