Skip to content

Commit 21006e0

Browse files
committed
Doc: Improved Vitepress page for the sortable component
1 parent c4c3eeb commit 21006e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/sortable.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ A table which can be sorted by clicking the column headers. The component requir
6363
| `sortDescFunction` | | `Function` | Replaces the default sort function for descending sorts |
6464
| `cssClass` | | `String` | Defines extra classes applied to the `th` elements |
6565

66-
Row objects should provide a property which can be used as `key` attribute in the list rendering.
66+
*Row* objects should provide a property which can be used as `key` attribute in the list rendering. Apart from matching column `prop` properties each row object can have a `cssClass` property.
6767

6868
As default a `key` property is assumed but can be declared otherwise with the `key-property` attribute of the component.
6969

7070
## Default Component
71+
72+
A most basic example passing only `columns` and `rows` properties.
73+
7174
::: code-group
7275
```js
7376
const cols = [

0 commit comments

Comments
 (0)