Namespace: util

firefly. util

Utilities.

Source:

Namespaces

chart
Chart utilities.
image
Image utilities.
table
Table utilities.

Methods


<static> addActionListener(actionType, callBack, extraData)

Add a listener to any action type

Parameters:
Name Type Description
actionType string

a string or an array of strings. Each string is an action constant from firefly.action.type

callBack function

the call back will be called with three parameters: action object, state object, and extraData If it returns true the listener will be removed.

extraData object

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
msg String | Error

any number of messages

Source:

<static> renderDOM(div, Component [, props])

Parameters:
Name Type Argument Description
div string | Object

a div element or a string id of the div element

Component Object

a react component

props Object <optional>

props for the react component

Source:

<static> unrenderDOM(div)

Parameters:
Name Type Description
div string | Object

a div element or a string id of the div element

Source: