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
| `thStyle` | Object | JavaScript object representing CSS styles you would like to apply to the table field `<th>`
151
150
| `formatter` | String or Function | A formatter callback function, can be used instead of slots for real table fields (i.e. fields, that have corresponding data at items array)
152
151
153
-
Notes:
154
-
-Field properties, if not present, default to null unless otherwise stated above.
155
-
-`thClass` and `tdClass` will not work with classes that are defined in scoped CSS
156
-
-For information on the syntax supported by `thStyle`, see
152
+
>***Notes:***
153
+
>-*Field properties, if not present, default to null unless otherwise stated above.*
154
+
>-*`thClass` and `tdClass` will not work with classes that are defined in scoped CSS*
155
+
>-*For information on the syntax supported by `thStyle`, see
157
156
[Class and Style Bindings](https://vuejs.org/v2/guide/class-and-style.html#Binding-Inline-Styles)
158
-
in the Vue.js guide.
159
-
-Any additional properties added to the field objects will be left intact - so you can access
160
-
them via the named scoped slots for custom data, header, and footer rendering.
161
-
-by design, slots and formatter are **mutually exclusive**. Ie. if formatter defined at field props, then slot will not be used even if it defined for this field.
157
+
in the Vue.js guide.*
158
+
>-*Any additional properties added to the field objects will be left intact - so you can access
159
+
them via the named scoped slots for custom data, header, and footer rendering.*
160
+
>-*by design, slots and formatter are **mutually exclusive**. Ie. if formatter defined at field props, then slot will not be used even if it defined for this field.*
162
161
163
162
### Items (record data)
164
163
`items` are real table data record objects in array format. Example format:
@@ -193,8 +192,8 @@ Supported optional item record modifier properties (make sure your field keys do
193
192
| `_cellVariants` | Object | Bootstrap contextual state applied to individual cells. Keyed by field (Supported values: `active`, `success`, `info`, `warning`, `danger`)
194
193
| `state` | String | **deprecated** in favour of `_rowVariant`
195
194
196
-
**Note**`state` is deprecated. The property `_rowVariant`, if present in
197
-
the record, will be prefered.
195
+
>***Note:**`state` is deprecated. The property `_rowVariant`, if present in
196
+
the record, will be prefered.*
198
197
199
198
`items` can also be a reference to a *provider* function, which returns an `Array` of items data.
200
199
Provider functions can also be asynchronous:
@@ -229,7 +228,7 @@ See the **"Using Items Provider functions"** section below for more details.
229
228
Custom rendering for each data field in a row is possible using either
230
229
[scoped slots](http://vuejs.org/v2/guide/components.html#Scoped-Slots) or formatter callback function.
231
230
232
-
####Slots
231
+
####Slots
233
232
If you want to add an extra field which does not exist in the records,
234
233
just add it to the `fields` array. Example:
235
234
@@ -299,10 +298,10 @@ The slot's scope variable (`data` in the above sample) will have the following p
299
298
| `item` | Object | The entire record (i.e. `items[index]`) for this row
300
299
| `index` | Number | The row number (zero based)
301
300
302
-
**Note** that`index` will not always be the actual row's index number, as it is
301
+
>***Note:**`index` will not always be the actual row's index number, as it is
303
302
computed after pagination and filtering have been applied to the original
304
303
table data. The `index` value will refer to the **displayed row number**. This
305
-
number will align with the indexes from the optional `v-model` bound variable.
304
+
number will align with the indexes from the optional `v-model` bound variable.*
306
305
307
306
When placing inputs, buttons, selects or links within a data cell scoped slot,
308
307
be sure to add a `@click.stop` handler (which can be empty) to prevent the
@@ -398,7 +397,7 @@ the original `items` array (except when `items` is set to a provider function).
398
397
Deleteing a record from the v-model will **not** remove the record from the
399
398
original items array.
400
399
401
-
**Note:** Do not bind any value directly to the `value` prop. Use the `v-model` binding.
400
+
>***Note:** Do not bind any value directly to the `value` prop. Use the `v-model` binding.*
402
401
403
402
### Filtering
404
403
Filtering, when used, is aplied to the original items array data, and hence it is not
0 commit comments