Skip to main content

activePanel

Description

Optional. Defines the active panel

The active status is set to the panel from the panels array.

Usage

activePanel?: 0 | 1

Parameters

To make the right panel active, set the property value to 1. The left panel is active by default and the default value is 0.

Example

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

</script>

<Filemanager
data={getData()}
drive={getDrive()}
activePanel={1} />

Related articles: mode