Skip to content

Commit ff4bdba

Browse files
committed
Add support for card attribute colors and icons
Introduced `cardAttributeColors` and `cardAttributeIcons` options for defining custom colors and icons for card attributes. This enhances the flexibility of card appearance customization in the flowforge component.
1 parent 69310f2 commit ff4bdba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ These settings enhance your board but are not required:
276276
- `cardLabel(string)`: Custom label for cards (defaults to model name)
277277
- `pluralCardLabel(string)`: Custom plural label for cards
278278
- `cardAttributes(array)`: Additional model attributes to display on cards
279+
- `cardAttributeColors(array)`: Key-value pairs defining colors for each card attribute
280+
- `cardAttributeIcons(array)`: Key-value pairs defining icons for each card attribute
279281
- `initialCardsCount(int)`: Number of cards initially loaded per column (default: 10)
280282
- `cardsIncrement(int)`: Number of cards to load when clicking "load more" (default: 5)
281283

@@ -308,6 +310,14 @@ public function mount(): void
308310
'due_date' => 'Due Date',
309311
'assignee.name' => 'Assigned To',
310312
])
313+
->cardAttributeColors([
314+
'due_date' => 'red',
315+
'assignee.name' => 'yellow',
316+
])
317+
->cardAttributeIcons([
318+
'due_date' => 'heroicon-o-calendar',
319+
'assignee.name' => 'heroicon-o-user',
320+
])
311321
->initialCardsCount(15)
312322
->cardsIncrement(10);
313323
}

0 commit comments

Comments
 (0)