Show:

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

()

Item Index

Methods

Properties

Methods

filter

(
  • data
  • meta
)
Boolean

Used to check if this ProAct.ProbProvider is compliant with the passed data.

Abstract - must be implemented by an extender.

Parameters:

  • data Object

    The data to check.

  • meta Object | String

    Meta-data used to help in filtering.

Returns:

Boolean:

If this provider is compliant with the passed data.

provide

(
  • data
  • meta
)
Object

Creates a reactive object from the passed data

Abstract - must be implemented by an extender.

Parameters:

  • data Object

    The data to use as a source for the object.

  • meta Object | String

    Meta-data used to help when creating.

Returns:

Object:

A reactive representation of the data.

register

(
  • provider
)
static

Registers a ProAct.ProbProvider.

The provider is appended in the end of the list of ProAct.ProbProviders.

Parameters:

Properties

constructor

ProAct.ProbProvider final

Reference to the constructor of this object.