selectedRows
Description
Optional. Marks rows as selectedUsage
selectedRows?: Array<string | number>;
Parameters
An array of the IDs of the selected rows.
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