F
Filament4mo ago

Set a label for the filter section

public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('name')->label('名前'), Tables\Columns\TextColumn::make('email')->label('メールアドレス'), Tables\Columns\TextColumn::make('created_at')->label('作成日'), Tables\Columns\TextColumn::make('updated_at')->label('更新日'), ]) ->filters([ Filter::make('name')->label('名前'), Filter::make('email')->label('メールアドレス'), Filter::make('created_at') ->form([ DatePicker::make('作成日'), ]), Filter::make('updated_at') ->form([ DatePicker::make('更新日'), ]) ], layout: FiltersLayout::AboveContent) ->filtersFormColumns(4) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]) ]); } }
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server