Skip to content

Events

Global $cf object emits following events.

config

js
$cf.listen('config', (response) => {
    // State: { config : response.config }
});

broadcasts

js
$cf.listen('broadcasts', (response) => {
    // State: { broadcasts : response.broadcasts, can_loadmore : response.can_loadmore }
});

autorefresh

Autorefresh details

js
$cf.listen('autorefresh', (response) => {
    // Response: { status : "enter" } 
    /* Possible status values: ["enter", "leave", "end"] */
});

resized

Triggered only when object document query observer handles resize (eqio resize).

js
$cf.listen('resized', (e) => {
    /* Handle event */
});

WARNING

Do not mix with window resize event.