subHeight
Description
Optional. Sets the height of a subrowThe property can be applied if the subrow
or subview
property is enabled.
Usage
subHeight?: number;
Parameters
The height of a subrow in pixels. If the subrow height is not set, the defaultRowHeight value is set for the subrow
property (which is 37px) and auto is set for the subview
property.
Example
<script>
import { getData } from "./common/data";
import { Grid } from "@wx/svelte-grid";
const { data, columns } = getData();
columns[0].subtoggle = true;
columns[0].width = 60;
function subTemplate(row) {
return `Followers: ${row.followers}\nStars: ${row.stars}`;
}
</script>
<Grid {data} {columns} subrow={subTemplate} subHeight={"60"} />
Related articles: