Skip to main content

set-active-panel

Description

Fires when active panel is changed

About active panel see here: activePanel

Usage

"set-active-panel": ({
panel: 0|1;
})

Parameters

  • panel - (required) sets active panel which can be 0 (left panel) or 1 (right panel)

Example

<script>
import { getData, getDrive } from "./common/data";
import { Filemanager } from "wx-svelte-filemanager";

let api;

$: if (api) {
api.exec("set-active-panel", {
panel: 0,
});
}
</script>

<Filemanager data={getData()} drive={getDrive()} bind:api />

Related articles: How to access File Manager API