Skip to main content

selectedRows

Description

Optional. Marks rows as selected

Usage

selectedRows?: string | number | [];

Parameters

An array of the IDs of the selected rows or single row ID.

Example

The example below shows how to select rows at the initialization.

<script>
import { getData } from "./common/data";
import { Grid } from "wx-svelte-grid";

const { data, columns } = getData();

</script>

<Grid
{data}
{columns}
selectedRows={[11,12]} />

Related articles: select-row