Skip to content

format

Format the date shown to the user on the Index and Show views.

Default value ​

Possible values ​

Use luxon formatting tokens.

picker_format

Format the date shown to the user on the Edit and New views.

Default value ​

Possible values ​

Use flatpickr formatting tokens.

picker_options

Passes the options here to flatpickr. Avo fills locale.weekdays and locale.months from the app locale and merges a locale you pass here over them.

Default value ​

{}

Possible values ​

Use flatpickr options.

disable_mobile

By default, flatpickr is disabled on mobile because the mobile date pickers tend to give a better experience, but you can override that using disable_mobile: true (misleading to set it to true, I know. We're just forwarding the option). So that will override that behavior and display flatpickr on mobile devices too.

Default value ​

false

Possible values ​

true, false

Wraps the content into an anchor that links to the resource.