selected
Description
Optional. Marks a row as selectedUsage
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