Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FilterDateTimePicker.php #1762

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

edwinheij
Copy link
Contributor

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

  • Bug fix
  • Enhancement
  • New feature
  • Breaking change

Description

Filter::datetimepicker() has no difference with Filter::datepicker()

With this change there is a time option with Flatpickr

Actually, you should also 'disable' the enableTime option in config/livewire-powergrid.php to let these two differ from each other.

To also enable seconds with the datetimepicker you can use:

Filter::datetimepicker('created_at')->params(['enableSeconds' => true])

Related Issue(s): none.

Documentation

This PR requires Documentation update?

  • Yes
  • No
  • I have already submitted a Documentation pull request.

```Filter::datetimepicker()``` has no difference with ```Filter::datepicker()```

With this change there is a time option with Flatpickr

Actually, you should also 'disable' the ```enableTime``` option in ```config/livewire-powergrid.php``` to let these two differ from each other.

To also enable seconds with the datetimepicker you can use:
```
Filter::datetimepicker('created_at')->params(['enableSeconds' => true])
```
@luanfreitasdev luanfreitasdev merged commit a88af7b into Power-Components:6.x Nov 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants