Skip to main content

selected

Description

Optional. Marks a row as selected

Usage

selected?: string | number;

Parameters

An ID of the selected row.

Example

import { getData } from "./common/data";
import { Grid } from "wx-react-grid";

const { data, columns } = getData();

export default function App() {
return (
<Grid
data={data}
columns={columns}
selected={11} />
);
}

Related articles: select-row