選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DeferredTextInputColumn.php 548B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Filament\Tables\Columns;
  3. use Closure;
  4. use Filament\Tables\Columns\TextInputColumn;
  5. class DeferredTextInputColumn extends TextInputColumn
  6. {
  7. protected string $view = 'filament.tables.columns.deferred-text-input-column';
  8. protected bool | Closure $batchMode = false;
  9. public function batchMode(bool | Closure $condition = true): static
  10. {
  11. $this->batchMode = $condition;
  12. return $this;
  13. }
  14. public function getBatchMode(): bool
  15. {
  16. return $this->evaluate($this->batchMode);
  17. }
  18. }