Skip to main content

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 "wx-svelte-grid";
import { getData } from "./common/data";

const { data } = getData();

const columns = [
{ id: "id", width: 50 },
{
id: "companyName",
header: {
text: "Company",
vertical: true,
},
footer: "Company",
},
];
</script>

<Grid {data} {columns} />