Utilities.
- Source:
Namespaces
Methods
-
<static> addActionListener(actionType, callBack, extraData)
Add a listener to any action type
-
Parameters:
Name Type Description actionTypestring a string or an array of strings. Each string is an action constant from firefly.action.type
callBackfunction the call back will be called with three parameters: action object, state object, and extraData If it returns true the listener will be removed.
extraDataobject an object with data to send to the callback, can be anything
- Source:
Returns:
a function that will remove the listener
- Type
- function
-
<static> debug(msg)
show a debug message if debugging is enabled
. -
show a debug message if debugging is enabled
Parameters:
Name Type Description msgString | Error any number of messages
- Source:
-
<static> renderDOM(div, Component [, props])
-
Parameters:
Name Type Argument Description divstring | Object a div element or a string id of the div element
ComponentObject a react component
propsObject <optional>
props for the react component
- Source:
-
<static> unrenderDOM(div)
-
Parameters:
Name Type Description divstring | Object a div element or a string id of the div element
- Source: