Skip to main content

split

Description

Optional. Allows freezing the leftmost columns while scrolling

Usage

split?: {
left: number
};

Parameters

left - the number of leftmost rows that will remain visible while scrolling (default is 0)

Example

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

import { getData } from "./common/data";
const { data, allColumns } = getData();

let left = 3; //freeze 3 columns

</script>

<Grid
{data}
columns={allColumns}
split={{ left }} />