Skip to main content

api.setNext()

Description

Allows adding some action into the Event Bus order

Usage

api.setNext(next: any): void;

Parameters

  • next - (required) the action to be included into the Event Bus order

Example

<script>
import { RestDataProvider } from "wx-filemanager-data-provider";
import { Filemanager } from "wx-svelte-filemanager";

const url = "https://some-backend-url";
const restProvider = new RestDataProvider(url);

$: data = [];

function init(api) {
api.setNext(restProvider);
}
</script>

<Filemanager {init} {data} />

Related articles: