Home Reference Source Repository
public class | source

VendorList

Extends:

react~Component → VendorList

Constructor Summary

Public Constructor
public

constructor(props: *)

constructor of class VendorList

Member Summary

Public Members
public

state: *

Method Summary

Public Methods
public

bookmark(key: key)

sets the bookmarks from the database.

public

called after dom elements is mounted, set focus on search bar

public

called before dom elements is mounted, fetching user list

public

fetches bookmarks

public

converts json object to an array of its contents

public

removeBookmark(bookmarks: *)

removes bookmarks {params} bookmarks - information of bookmarks

public

removebookmark(key: key)

removes the bookmarks from the database.

public

render(): html

renders the display for the current page.

public

update search team after user input

public

setBookmarks(bookmarks: *)

sets bookmarks {params} bookmarks - information of bookmarks

Public Constructors

public constructor(props: *) source

constructor of class VendorList

Params:

NameTypeAttributeDescription
props *

Public Members

public state: * source

Public Methods

public bookmark(key: key) source

sets the bookmarks from the database.

Params:

NameTypeAttributeDescription
key key

information on bookmarks

public componentDidMount() source

called after dom elements is mounted, set focus on search bar

public componentWillMount() source

called before dom elements is mounted, fetching user list

public fetchBookmarks() source

fetches bookmarks

public jsonToArray(json: object): Array source

converts json object to an array of its contents

Params:

NameTypeAttributeDescription
json object

takes a json object

Return:

Array

arr returns an array of the given json object

public removeBookmark(bookmarks: *) source

removes bookmarks {params} bookmarks - information of bookmarks

Params:

NameTypeAttributeDescription
bookmarks *

public removebookmark(key: key) source

removes the bookmarks from the database.

Params:

NameTypeAttributeDescription
key key

information on bookmarks

public render(): html source

renders the display for the current page. displays courses

Return:

html

if there is a courselist return the list

public searchUpdated(term: string) source

update search team after user input

Params:

NameTypeAttributeDescription
term string

pass a search term

public setBookmarks(bookmarks: *) source

sets bookmarks {params} bookmarks - information of bookmarks

Params:

NameTypeAttributeDescription
bookmarks *