Modify Modal Title

Hello everyone, I have created this class to handle the Resource sub-navigation. I would like to understand how to modify the title in the modal for creating/editing the address.
Solution:
```php public static function table(Table $table): Table { return $table ->columns([...
Jump to solution
6 Replies
NeerGreeN
NeerGreeNOP11mo ago
Dennis Koch
Dennis Koch11mo ago
I think it's ->modalHeadline() or `->modalTitle() on the action
Tobias Platen
Tobias Platen11mo ago
->headerActions([
Tables\Actions\CreateAction::make()
->modalHeading('New Title'),
])
->headerActions([
Tables\Actions\CreateAction::make()
->modalHeading('New Title'),
])
should do https://filamentphp.com/docs/3.x/actions/modals#customizing-the-modals-heading-description-and-submit-action-label
NeerGreeN
NeerGreeNOP11mo ago
perfect thanks Last thing, how do I edit this?
Solution
Tobias Platen
Tobias Platen11mo ago
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateHeading('Nessun risultato')
->emptyStateDescription('Crea un contact per iniziare.')
->emptyStateIcon('heroicon-o-bookmark');
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
])
->emptyStateHeading('Nessun risultato')
->emptyStateDescription('Crea un contact per iniziare.')
->emptyStateIcon('heroicon-o-bookmark');
}
These basics are well documented in the documentation. https://filamentphp.com/docs/3.x/tables/empty-state
Prodex
Prodex11mo ago
There is record title and record plural title
Want results from more Discord servers?
Add your server