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 setup>
import { getData } from "./common/data";
import { Grid } from "@svar-ui/vue-grid";

const { data, columns } = getData();

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

<template>
<Grid :data="data" :columns="columns" :init="init" />
</template>

Related articles: