Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 869 Bytes

refreshing.md

File metadata and controls

52 lines (38 loc) · 869 Bytes
title weight
Refreshing
1

Disabled by default, set the refresh parameters on the component.

Note: You should only enable one of the following methods on the component.

setRefreshTime

Set the amount of time in milliseconds as a refresh interval.

public function configure(): void
{
    $this->setRefreshTime(2000); // Component refreshes every 2 seconds
}

setRefreshKeepAlive

Keep polling when the tab with the component is in the background.

public function configure(): void
{
    $this->setRefreshKeepAlive();
}

setRefreshVisible

Only refresh the component when it is visible.

public function configure(): void
{
    $this->setRefreshVisible();
}

setRefreshMethod

Fire a specific action when polling.

public function configure(): void
{
    $this->setRefreshMethod('refresh');
}