ProAct.SimplePropertyProvider Class
src/js/properties/property_provider.js:241
Constructor for ProAct.SimplePropertyProvider
.
Provides ProAct.Property instances for fields of simple types - strings, numbers, booleans.
ProAct.SimplePropertyProvider
is part of the proact-properties module of ProAct.js.
Constructor
ProAct.SimplePropertyProvider
()
Methods
filter
-
object
-
property
-
meta
Used to check if this ProAct.SimplePropertyProvider
is compliant with the field and meta data.
Parameters:
-
object
ObjectThe object to which a new ProAct.Property instance should be provided.
-
property
StringThe field name of the object to turn into a ProAct.Property. Can be used in the filtering process.
-
meta
String | ArrayMeta information to be used for filtering and configuration of the ProAct.Property instance to be provided.
Returns:
True if the value of object[property] not undefined or null as well as object, array ot function.
provide
-
queueName
-
object
-
property
-
meta
Provides an instance of ProAct.Property.
Parameters:
-
queueName
StringThe name of the queue all the updates should be pushed to.
If this parameter is null/undefined the default queue of flow is used.
-
object
ObjectThe object to which a new ProAct.Property instance should be provided.
-
property
StringThe field of the object to turn into a ProAct.Property.
-
meta
String | ArrayMeta information to be used for filtering and configuration of the ProAct.Property instance to be provided.
Returns:
A ProAct.Property instance provided by this provider.