divStrong
divStrong
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
If this needs to be done in a modal, that's OK too, just trying to avoid having to delete/add if the user makes a mistake adding item
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
Essentially yes. 'Edit' would prompt the same 'Add' form, except prepopulated with the existing record data that would save changes instead of adding new
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
But is there an ->editable() or similar property to allow editing each row?
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
->cloneable()
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
This property allows for copying:
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
public static function getTableRepeater(){ return TableRepeater::make('items') ->addable(false) ->minItems(0) ->defaultItems(0) ->headers([ Header::make('name')->label('Item Name'), Header::make('colors')->label('Color(s)'), Header::make('size')->label('Size'), Header::make('qty')->label('Quantity'), Header::make('price')->label('Price') ]) ->schema([ Placeholder::make('name_label') ->disableLabel() ->content(fn ($get) => // separate with new lines new HtmlString('<strong>'.static::getItemName($get('name')).'</strong>'. '<br>'.static::getLocation($get)) ),
12 replies
FFilament
Created by divStrong on 1/31/2025 in #❓┊help
Add Edit Icon To Repeater
Am using the TableRepeater like this:
12 replies