Skip to content

Commit

Permalink
Add alternative to Flatpickr config
Browse files Browse the repository at this point in the history
  • Loading branch information
dansysanalyst authored May 14, 2024
1 parent 1ca8ac7 commit 6132d83
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/get-started/powergrid-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,24 @@ Add the following code to your project's `resources/js/app.js` file.
import flatpickr from "flatpickr"; // [!code ++]
```

Next, add the following code to your project's `resources/js/app.css` file.
Next, we need to load Flatpickr CSS.

Add the following code to your project's `resources/js/app.css` file.

```css
/* resources/js/app.css */

@import "flatpickr/dist/flatpickr.min.css"; // [!code ++]
```

Alternatively, you may import the CSS from the `resources/js/app.js` file.

```javascript
// resources/js/app.js

import 'flatpickr/dist/flatpickr.min.css';// [!code ++]
```

Finally, adjust the language configuration to match your app's locale within the `config/livewire-powergrid.php` file, specifically in the `plugins` > `flatpickr` section.

Example:
Expand Down

0 comments on commit 6132d83

Please sign in to comment.