Bartek
Bartek
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
agree if there is no possibility of directly placing action form input field inline on the table row all other solutions sound too complex for what its worth ...
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
I'm trying to skip the need for modal popup as it has only one input field inside and really defies the purpose. I wish there was a way to plop form input field down inline next to its action in a table row.
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
can that action with form display in a row?
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
currently it is based on buttons opening up a modal with form input field where user can enter amount. I would like to move that input field to row next to action buttons
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
so i dont want to change column directly. I want empty input field where i can fill it in with desired amount that needs to be either removed or added to transaction. there are two custom actions add and remove as there is bunch of code that needs to run before amount is being removed or added to total (logging and validation).
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
can I hook text input column to respond to table action defined in $table->actions() ?
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
like an inline mini form so I don't open modal
14 replies
FFilament
Created by Bartek on 7/23/2024 in #❓┊help
Is it possible to put action form input field next to action button in a table row?
I'm looking for way to put input fields in relation manager table next to action buttons in rows
14 replies
FFilament
Created by Bartek on 1/12/2024 in #❓┊help
Is there a way to display empty table in TableWidget if specific property of parent model is false?
Ok, I have done it: In order to have empty widget table when parent record is disabled I have overridden getTableRecords() method in table widget like this:
public function getTableRecords(): Paginator|CursorPaginator|Collection
{
if ($this->record->enabled) {
return parent::getTableRecords();
}

return Collection::make();
}
public function getTableRecords(): Paginator|CursorPaginator|Collection
{
if ($this->record->enabled) {
return parent::getTableRecords();
}

return Collection::make();
}
3 replies
FFilament
Created by Bartek on 11/9/2023 in #❓┊help
Is there a way to modify option label strings in default AttachAction class?
Turns out we can mutate options array that is generated by AttachAction by using recordSelect method like this:
AttachAction::make()
->preloadRecordSelect()
->recordSelect(function (Select $select) {
$prefix = 'Prefix';

$result = [];
foreach ($select->getOptions() as $key => $value) {
$result[$key] = $prefix . ' - ' . $value;
}

return $select->options($result);
}),
AttachAction::make()
->preloadRecordSelect()
->recordSelect(function (Select $select) {
$prefix = 'Prefix';

$result = [];
foreach ($select->getOptions() as $key => $value) {
$result[$key] = $prefix . ' - ' . $value;
}

return $select->options($result);
}),
3 replies