You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/table/README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,7 @@ The following field properties are recognized:
242
242
|`class`| String or Array | Class name (or array of class names) to add to `<th>`**and**`<td>` in the column. |
243
243
|`formatter`| String or Function | A formatter callback function or name of a method in your component, can be used instead of (or in conjunction with) scoped field slots. The formatter will be called with the syntax `formatter(value, key, item)`. Refer to [Custom Data Rendering](#custom-data-rendering) for more details. |
244
244
|`sortable`| Boolean | Enable sorting on this column. Refer to the [Sorting](#sorting) Section for more details. |
245
+
|`sortKey`| String | <spanclass="badge badge-secondary">v2.17.0+</span> Set the value of `sortBy` for the column in the emitted context when `no-local-sorting` is `true`. |
245
246
|`sortDirection`| String | Set the initial sort direction on this column when it becomes sorted. Refer to the [Change initial sort direction](#change-initial-sort-direction) Section for more details. |
246
247
|`sortByFormatted`| Boolean or Function | Sort the column by the result of the field's `formatter` callback function when set to `true`. Default is `false`. Boolean has no effect if the field does not have a `formatter`. Optionally accepts a formatter function _reference_ to format the value for sorting purposes only. Refer to the [Sorting](#sorting) Section for more details. |
247
248
|`filterByFormatted`| Boolean or Function | Filter the column by the result of the field's `formatter` callback function when set to `true`. Default is `false`. Boolean has no effect if the field does not have a `formatter`. Optionally accepts a formatter function _reference_ to format the value for filtering purposes only. Refer to the [Filtering](#filtering) section for more details. |
@@ -2048,7 +2049,7 @@ function toString(value) {
2048
2049
### Disable local sorting
2049
2050
2050
2051
If you want to handle sorting entirely in your app, you can disable the local sorting in `<b-table>`
2051
-
by setting the prop `no-local-sorting` to true, while still maintaining the sortable header
2052
+
by setting the prop `no-local-sorting` to `true`, while still maintaining the sortable header
2052
2053
functionality (via `sort-changed` or `context-changed` events as well as syncable props).
2053
2054
2054
2055
You can use the syncable props `sort-by.sync` and `sort-desc.sync` to detect changes in sorting
@@ -2059,7 +2060,7 @@ with a single argument containing the context object of `<b-table>`. See the
2059
2060
[Detection of sorting change](#detection-of-sorting-change) section below for details about the
2060
2061
sort-changed event and the context object.
2061
2062
2062
-
When `no-local-sorting` is true, the `sort-compare` prop has no effect.
2063
+
When `no-local-sorting` is `true`, the `sort-compare` prop has no effect.
0 commit comments