Skip to content

Commit 5b93258

Browse files
committed
UP
1 parent 8ed18a8 commit 5b93258

File tree

7 files changed

+193
-67
lines changed

7 files changed

+193
-67
lines changed

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,49 @@ public function mount(): void
233233
}
234234
```
235235

236+
### Configuring Pagination
237+
238+
You can customize how many cards are loaded initially and how many are loaded when scrolling to the bottom of a column:
239+
240+
#### Option 1: Via constructor parameters
241+
242+
Pass parameters directly when instantiating the board:
243+
244+
```php
245+
// In your Filament page or Livewire component
246+
public function mount(): void
247+
{
248+
parent::mount(initialCardsCount: 5, cardsIncrement: 5);
249+
250+
// Rest of your configuration...
251+
}
252+
```
253+
254+
#### Option 2: Via config file
255+
256+
Update values in the `config/flowforge.php` file:
257+
258+
```php
259+
// config/flowforge.php
260+
return [
261+
// ...
262+
263+
'kanban' => [
264+
'initial_cards_count' => 5, // Initial number of cards to show per column
265+
'cards_increment' => 10, // Number of cards to load when loading more
266+
'max_cards_per_column' => 100, // Maximum number of cards that can be loaded per column
267+
],
268+
269+
// ...
270+
];
271+
```
272+
273+
To publish the configuration file:
274+
275+
```bash
276+
php artisan vendor:publish --tag="flowforge-config"
277+
```
278+
236279
### Customizing Badge Appearance
237280

238281
The badge colors are defined in the CSS file and can be customized by publishing the assets:

config/flowforge.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
'default_limit' => 10, // Maximum number of items per column
1616
],
1717

18+
// Kanban board settings
19+
'kanban' => [
20+
'initial_cards_count' => 20, // Initial number of cards to show per column
21+
'cards_increment' => 10, // Number of cards to load when loading more
22+
'max_cards_per_column' => 100, // Maximum number of cards that can be loaded per column
23+
],
24+
1825
// User Interface settings
1926
'ui' => [
2027
'show_item_counts' => true, // Whether to show item counts in column headers
@@ -26,4 +33,4 @@
2633
'animations' => [
2734
'enable_drag_animations' => true, // Whether to enable animations during drag operations
2835
],
29-
];
36+
];

resources/dist/flowforge.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,6 +2503,14 @@ select {
25032503
margin-top: auto;
25042504
}
25052505

2506+
.-ml-1 {
2507+
margin-left: -0.25rem;
2508+
}
2509+
2510+
.mr-2 {
2511+
margin-right: 0.5rem;
2512+
}
2513+
25062514
.line-clamp-2 {
25072515
overflow: hidden;
25082516
display: -webkit-box;
@@ -4212,6 +4220,14 @@ select {
42124220
opacity: 0.7;
42134221
}
42144222

4223+
.opacity-25 {
4224+
opacity: 0.25;
4225+
}
4226+
4227+
.opacity-75 {
4228+
opacity: 0.75;
4229+
}
4230+
42154231
.shadow {
42164232
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
42174233
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);

resources/dist/flowforge.js

Lines changed: 13 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)