F
Filament10mo ago
Jap

Global Form/Modal Actions Alignment

How can i perform this globally in my app service provider ?
public static string | Alignment $formActionsAlignment = Alignment::Right;
public static string | Alignment $formActionsAlignment = Alignment::Right;
Solution:
Got the solution here are the examples that might help. Forms/Pages: ``` use Filament\Resources\Pages\Page; Page::alignFormActionsEnd();...
Jump to solution
1 Reply
Solution
Jap
Jap10mo ago
Got the solution here are the examples that might help. Forms/Pages:
use Filament\Resources\Pages\Page;
Page::alignFormActionsEnd();
use Filament\Resources\Pages\Page;
Page::alignFormActionsEnd();
Modals:
use Filament\Actions\CreateAction;
use Filament\Actions\EditAction;
use Filament\Tables\Actions\CreateAction as ActionsCreateAction;
use Filament\Tables\Actions\EditAction as ActionsEditAction;
CreateAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
ActionsCreateAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
EditAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
ActionsEditAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
use Filament\Actions\CreateAction;
use Filament\Actions\EditAction;
use Filament\Tables\Actions\CreateAction as ActionsCreateAction;
use Filament\Tables\Actions\EditAction as ActionsEditAction;
CreateAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
ActionsCreateAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
EditAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
ActionsEditAction::configureUsing(
function ($action) {
return $action->modalFooterActionsAlignment(Alignment::End);
}
);
Want results from more Discord servers?
Add your server