Skip to main content

api.getRow(id)

Description

Gets an object with the row configuration

Usage

api.getRow(id): object;

Parameters

  • id - the id of a row

Returns

The method returns an object with the row parameters:

{
[key: string]: any;
}

Example

The example below shows how to output the row configuration to the console:

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

const { data, columns } = getData();

let api;

$: if (api) {
const row = api.getRow(11);
console.log("Row:", row);
}
</script>

<Grid {data} {columns} bind:api />

Related articles: