Making text vertical in headers
To change text orientation from default horizontal to vertical, use the header parameter of the columns property and set its vertical attribute value to true.
Example:
<script>
import { Grid } from "@svar-ui/svelte-grid";
import { getData } from "./common/data";
const { data } = getData();
const columns = [
{ id: "id", width: 50 },
{
id: "companyName",
header: {
text: "Company",
vertical: true,
}
},
];
</script>
<Grid {data} {columns} />