From cd2d1eb1fa4013569b5de4ac2d44dd695ce08903 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 30 May 2023 18:06:03 +0200 Subject: [PATCH] docs(table): add alert on sort prop without sortable --- docs/content/4.data/1.table.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/4.data/1.table.md b/docs/content/4.data/1.table.md index 28d8b5fa..b625f5f9 100644 --- a/docs/content/4.data/1.table.md +++ b/docs/content/4.data/1.table.md @@ -205,6 +205,10 @@ You can specify a default sort for the table through the `sort` prop. It's an ob - `column` - The column to sort by. - `direction` - The sort direction. Can be either `asc` or `desc` and defaults to `asc`. +::alert{icon="i-heroicons-light-bulb"} +This will set the default sort and will work even if no column is set as `sortable`. +:: + Use the `sort-button` prop to customize the sort button in the header. You can pass all the props of the [Button](/elements/button) component to customize it through this prop or globally through `ui.table.default.sortButton`. Its icon defaults to `i-heroicons-arrows-up-down-20-solid`. ::component-card