Skip to content

Commit 1b12c3e

Browse files
committed
docs: fix markdown formatting in date feature guide
1 parent f59fa19 commit 1b12c3e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

docs/guide/features/date.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,25 @@ Use Vuetify components [that require date functionality](https://vuetifyjs.com/e
55
To use Vuetify components [that require date functionality](https://vuetifyjs.com/en/features/dates/):
66
- install one of the [@date-io](https://github.com/dmtrKovalenko/date-io#projects) adapters (optional)
77
- configure the date entry in your Vuetify configuration:
8-
```ts
9-
vuetifyOptions: {
10-
date: {
11-
adapter: 'vuetify' // 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom'
12-
}
8+
9+
10+
```ts
11+
vuetifyOptions: {
12+
date: {
13+
adapter: 'vuetify' // 'vuetify' | 'date-fns' | 'moment' | 'luxon' | 'dayjs' | 'js-joda' | 'date-fns-jalali' | 'jalaali' | 'hijri' | 'custom'
1314
}
14-
```
15+
}
16+
```
1517

1618
If you also have `@nuxtjs/i18n` module installed, `vuetifyOptions.date.locale` and `vuetifyOptions.date.rtl` options will be automatically configured, beware, the configured `locale` entry will be ignored.
1719

1820
If you want to use a custom date adapter, you can configure it using `vuetifyOptions.date.adapter = 'custom'`, and then:
1921
- add a Nuxt Plugin and add the `vuetify:configuration` hook to configure your Vuetify options
2022
- you can import the `virtual:vuetify-date-configuration` module, you will have access to the configuration:
21-
```ts
22-
import { adapter, dateConfiguration, i18n } from 'virtual:vuetify-date-configuration'
23-
```
23+
24+
25+
```ts
26+
import { adapter, dateConfiguration, i18n } from 'virtual:vuetify-date-configuration'
27+
```
2428

2529
Check out [vuetify-date](https://github.com/vuetifyjs/nuxt-module/blob/main/src/runtime/plugins/vuetify-date.ts) plugin and the [date module](https://github.com/vuetifyjs/nuxt-module/blob/main/src/runtime/plugins/date.ts) for an example of a custom date adapter and how to access to the configuration.

0 commit comments

Comments
 (0)