Class: ProviderElement

ProviderElement()

ProviderElement This class is a "provider" of data from external sources.

Constructor

new ProviderElement()

Properties:
Name Type Description
origin String The origin of the resource
path String The path to the resource
method String The method to use to fetch the resource
interval Number The interval to fetch the resource in seconds. If undefined, only fetch once
message String The status message to display
Source:
Example
<js-provider origin="https://remote/" path="/path/to/resource" method="POST" interval="60"></js-provider>

Classes

ProviderElement

Methods

cancel()

Cancel any existing request interval timer.
Source:

fetch(path, request, interval)

Fetch data from a remote source
Parameters:
Name Type Description
path String The path to the resource. If NULL, use the path property.
request Object The request object. If NULL, use the method property.
interval Number The interval to fetch the data. If NULL, use the interval property.
Source: