Skip to content

Allow picker_options customization for custom dynamic filters #3182

Open
@Paul-Bob

Description

@Paul-Bob

Enabling the time picker on a date filter is only possible (for now) if the filter is defined in a date_time or time field.

The filter is using flatpickr behind the scenes, to fully customize the picker we can add the picker_options option where you could configure flatpick options.

Something like:

    dynamic_filter :only_time_example,
      type: :date,
      picker_options: {
        enableTime: true,
        noCalendar: true
      }

    dynamic_filter :date_time_example,
      type: :date,
      picker_options: {
        enableTime: true
      }

Originally posted by @Paul-Bob in #3180 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions