2121 * @method self withColumnColors(array $columnColors) Set the color mappings for columns
2222 * @method self withTitleField(string $titleField) Set the field name used for card titles
2323 * @method self withDescriptionField(string|null $descriptionField) Set the field name for card descriptions
24- * @method self withRecordAttributes (array $recordAttributes ) Set the additional fields to display on cards
24+ * @method self withCardAttributes (array $cardAttributes ) Set the additional fields to display on cards
2525 * @method self withOrderField(string|null $orderField) Set the field name for maintaining card order
2626 * @method self withCardLabel(string|null $cardLabel) Set the label for individual cards
2727 * @method self withPluralCardLabel(string|null $pluralCardLabel) Set the plural label for collection of cards
@@ -34,7 +34,7 @@ public function __construct(
3434 private array |bool |null $ columnColors = null ,
3535 private string $ titleField = 'title ' ,
3636 private ?string $ descriptionField = null ,
37- private array $ recordAttributes = [],
37+ private array $ cardAttributes = [],
3838 private ?string $ orderField = null ,
3939 private ?string $ cardLabel = null ,
4040 private ?string $ pluralCardLabel = null ,
@@ -97,9 +97,9 @@ public function getDescriptionField(): ?string
9797 *
9898 * @return array<string, string> Map of attribute names to their display labels
9999 */
100- public function getRecordAttributes (): array
100+ public function getCardAttributes (): array
101101 {
102- return $ this ->recordAttributes ;
102+ return $ this ->cardAttributes ;
103103 }
104104
105105 /**
@@ -241,7 +241,7 @@ public function toLivewire(): array
241241 'columnColors ' => $ this ->columnColors ,
242242 'titleField ' => $ this ->titleField ,
243243 'descriptionField ' => $ this ->descriptionField ,
244- 'recordAttributes ' => $ this ->recordAttributes ,
244+ 'cardAttributes ' => $ this ->cardAttributes ,
245245 'orderField ' => $ this ->orderField ,
246246 'cardLabel ' => $ this ->cardLabel ,
247247 'pluralCardLabel ' => $ this ->pluralCardLabel ,
@@ -256,7 +256,7 @@ public static function fromLivewire($value): KanbanConfig
256256 $ value ['columnColors ' ],
257257 $ value ['titleField ' ],
258258 $ value ['descriptionField ' ],
259- $ value ['recordAttributes ' ],
259+ $ value ['cardAttributes ' ],
260260 $ value ['orderField ' ],
261261 $ value ['cardLabel ' ],
262262 $ value ['pluralCardLabel ' ]
0 commit comments