ProAct.ProbProvider Class
Defined in:
Module: proact-core
src/js/core/functions.js:5
A ProbProvider
provides a way for creating a ProAct implementation,
using raw data.
For example such a provider can provide a way to create an ProAct.Actor from a plain JavaScript object.
Constructor
ProAct.ProbProvider
()
Methods
filter
(
Boolean
-
data
-
meta
Used to check if this ProAct.ProbProvider
is compliant with the passed data.
Abstract - must be implemented by an extender.
Parameters:
Returns:
Boolean:
If this provider is compliant with the passed data.
provide
(
Object
-
data
-
meta
Creates a reactive object from the passed data
Abstract - must be implemented by an extender.
Parameters:
Returns:
Object:
A reactive representation of the data.
register
(
static
-
provider
Registers a ProAct.ProbProvider
.
The provider is appended in the end of the list of ProAct.ProbProvider
s.
Parameters:
-
provider
ProAct.ProbProviderThe
ProAct.ProbProvider
to register.