docs: improve slots sections

This commit is contained in:
Benjamin Canac
2023-06-01 15:29:02 +02:00
parent c63981e31c
commit 130a1f2c54
7 changed files with 173 additions and 8 deletions

View File

@@ -403,7 +403,7 @@ excludedProps:
You can use slots to customize the header and data cells of the table.
### `#<column>-header`
### `<column>-header`
Use the `#<column>-header` slot to customize the header cell of a column. You will have access to the `column`, `sort` and `on-sort` properties in the slot scope.
@@ -418,7 +418,7 @@ The `on-sort` property is a function that you can call to sort the table and acc
Even though you can customize the sort button as mentioned in the [Sortable](#sortable) section, you can use this slot to completely override its behavior, with a custom dropdown for example.
::
### `#<column>-data`
### `<column>-data`
Use the `#<column>-data` slot to customize the data cell of a column. You will have access to the `row` and `column` properties in the slot scope.