Class

Requests

Requests()

Requests This class handles the requests for a widget.

Constructor

# new Requests()

View Source data/requests.js, line 6

Methods

# add(id, req)

Add request to the store.

Parameters:
Name Type Description
id string | Array

Id for the request or array of object { id, request } for add.

req Request

The request to store.

View Source data/requests.js, line 18

# get(id)

Return request by id.

Parameters:
Name Type Description
id string

Id of the request.

View Source data/requests.js, line 37

# getAll()

Return all available requests.

View Source data/requests.js, line 45