mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
docs: improve slots sections
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user