You're viewing Avo 3 docs — go to Avo 4

Skip to content

format

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

Default ​

Possible values ​

Use luxon formatting tokens.

picker_format

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

Default ​

Possible values ​

Use flatpickr formatting tokens.

picker_options

Passes the options here to flatpickr.

Default ​

{}

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 ​

false

Possible values ​

true, false