nested repeater with forms Actions Component
I have this stracture and I can't retrieve the cardId on the Action AssignUsers. The record has tasklist model and the arguments is empty. Can Anybody help
Repeater::make('Tasklists')
->relationship('tasklists') // Tells Filament this is a relationship
->schema([
Repeater::make('Cards')
->relationship('cards') // Tells Filament this is a relationship
->schema([...])
->extraItemActions([
Action::make('editCard')
->mountUsing(function (Forms\ComponentContainer $form, $record, array $arguments) {
preg_match_all('/\d+/', $arguments['item'], $cardId);
$cardId = $cardId[0][0];
...
]);
->form([
Split::make([
Section::make([
...
]),
Section::make([
Actions::make([
Action::make("Assign Users")
->form([
TextInput::make('name'),
...
])
->mountUsing(function (Forms\ComponentContainer $form, $record, array $arguments) {
})
])
])->grow(false),
])
])
])
])
Repeater::make('Tasklists')
->relationship('tasklists') // Tells Filament this is a relationship
->schema([
Repeater::make('Cards')
->relationship('cards') // Tells Filament this is a relationship
->schema([...])
->extraItemActions([
Action::make('editCard')
->mountUsing(function (Forms\ComponentContainer $form, $record, array $arguments) {
preg_match_all('/\d+/', $arguments['item'], $cardId);
$cardId = $cardId[0][0];
...
]);
->form([
Split::make([
Section::make([
...
]),
Section::make([
Actions::make([
Action::make("Assign Users")
->form([
TextInput::make('name'),
...
])
->mountUsing(function (Forms\ComponentContainer $form, $record, array $arguments) {
})
])
])->grow(false),
])
])
])
])