Skip to main content

mode

Description

Optional. Defines a display mode of the File Manager

Usage

mode?: string;

Parameters

mode- (optional) defines how files and folders are displayed. Possible values:

  • "cards" - (default) items are displayed in the form of cards
  • "table" - items are displayed in the form of the table
  • "panels" - items are displayed in two separate panels
  • "search" - only search results are displayed

By default, the mode parameter is set to the cards value

Example

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

</script>

<Filemanager data={getData()} mode={"panels"} />