Skip to main content

selected

Description

Optional. Marks a row as selected

Usage

selected?: string | number;

Parameters

An ID of the selected row.

Example

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

const { data, columns } = getData();

</script>

<Grid
{data}
{columns}
selected={11} />

Related articles: select-row