A reference to the Redux store for the Requerio instance.
Incepts additional organisms after initialization. They will be added to the
requerio.$orgs
object.
Returns: undefined
Param | Type | Description |
---|---|---|
...selector | string |
A comma separated list of selectors to incept into organisms. |
These methods are made available on organisms after inception. The organisms are
members of Requerio's $orgs
property and are keyed by their selector. For
example:
requerio.$orgs['#yoda'].dispatchAction('css', {color: 'green'});
A server-side stand-in for client-side .blur()
.
Dispatches actions for reduction. Side-effects occur here (not in the reducer).
- Applies the jQuery method.
- Applies any additional changes.
- Calls the Redux
store.dispatch()
method.
Returns: object
- The organism. Allows for action dispatches to be chained.
Param | Type | Description |
---|---|---|
method | string |
The name of the method on the organism's prototype. |
[args] | * |
This param contains the values to be passed as arguments to the method. null may be submitted if not passing arguments, but targeting a memberIdx. |
[memberIdx] | number |number[] |
The index, or array of indices, of the organism member(s), if targeting one or more members. |
Excludes (temporarily) selected member or members from an organism's .$members
array. A .dispatchAction()
is meant to be ultimately chained to this method.
Invoking .dispatchAction()
will restore all original .$members
.
Returns: object
- The organism with its .$members
winnowed of selected exclusions.
Param | Type | Description |
---|---|---|
selector | string |object |function |
A selector string, a DOM (or DOM-like) element, a jQuery component, or a function returning true or false. |
A server-side stand-in for client-side .focus()
.
Gets state of Requerio organism or member. Invokes Redux store.getState()
.
Returns: object
|null
- The organism's or member's state or null
if the state doesn't exist.
Param | Type | Description |
---|---|---|
[memberIdx] | number |
The index of the organism member (if targeting a member). |
A reference to the Redux store
. The same reference as requerio.store
.
Returns: object
- This app's state store.
Filters (temporarily) an organism's .$members
array to include only those with
a child matching the selector. A .dispatchAction()
is meant to be ultimately
chained to this method. Invoking .dispatchAction()
will restore all original
$.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |object |
A selector string or DOM (or DOM-like) element. No jQuery components. |
Filters (temporarily) an organism's .$members
to include only those whose
elements match the param. A .dispatchAction()
is meant to be ultimately
chained to this method. Invoking .dispatchAction()
will restore all original
$.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
element | object |
A DOM (or DOM-like) element. |
Filters (temporarily) an organism's .$members
array to include only those whose
"next" sibling is matched by the selector. A .dispatchAction()
is meant to be
ultimately chained to this method. Invoking .dispatchAction()
will restore all
original $.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |object |
A selector string or DOM (or DOM-like) element. No jQuery components. |
Filters (temporarily) an organism's .$members
to include only those with a
parent matching the selector. A .dispatchAction()
is meant to be ultimately
chained to this method. Invoking .dispatchAction()
will restore all original
$.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |object |
A selector string or DOM (or DOM-like) element. No jQuery components. |
Filters (temporarily) an organism's .$members
to include only those whose
"prev" sibling is matched by the selector. A .dispatchAction()
is meant to be
ultimately chained to this method. Invoking .dispatchAction()
will restore all
original $.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |object |
A selector string or DOM (or DOM-like) element. No jQuery components. |
Filters (temporarily) an organism's .$members
to include only those that match
the selector criteria. A .dispatchAction()
is meant to be ultimately chained
to this method. Invoking .dispatchAction()
will restore all original
$.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |
A jQuery selector. |
Filters (temporarily) an organism's .$members
to include only those with a
sibling matched by the selector. A .dispatchAction()
is meant to be ultimately
chained to this method. Invoking .dispatchAction()
will restore all original
$.members
.
Returns: object
- The organism with its .$members
winnowed of exclusions.
Param | Type | Description |
---|---|---|
selector | string |
A selector string. |
(Re)populate an organism's .$members
array with its (recalculated) members.
.$members
are jQuery components, not fully incepted organisms.
Reset the organism's elements and members as they are added or removed. This is necessary because jQuery does not dynamically update the indexed elements or length properties on a saved jQuery component.
Give the ability to set boundingClientRect
properties. Only for server-side
testing.
Param | Type | Description |
---|---|---|
rectObj | object |
An object of boundingClientRect measurements. Does not need to include all of them. |
[memberIdx] | number |number[] |
The index (or array of indices) of the organism member(s) if targeting one or more members. |
Update measurements on the state object as per changes to attributes and styles.
Returns: boolean
- Whether or not to update state based on a change in measurement.
Param | Type | Description |
---|---|---|
state | object |
The most recent state. |
[$member] | object |object[] |
The object (or array of objects) representing the organism member(s) (if targeting one or more members). |
[memberIdx] | number |number[] |
The index (or array of indices) of the organism member(s) (if targeting one or more members). Submitting $member and omitting memberIdx will set the index to start at 0 and increment up. |