Skip to content

Commit

Permalink
fix: merg confiect
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalhattami committed Apr 24, 2024
2 parents f8a1bbe + 9beec08 commit 82d768a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Traits/ColumnHasContextMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

namespace AymanAlhattami\FilamentContextMenu\Traits;

use Filament\Support\Concerns\EvaluatesClosures;

trait ColumnHasContextMenu
{
protected string $wrapperView = 'filament-context-menu::filament.tables.columns.context-menu-column';

protected ?string $mainView = '';
protected \Closure|array $contextMenuActions = [];

protected \Closure | array $contextMenuActions = [];

/**
* @throws \Exception
Expand All @@ -27,7 +26,7 @@ public function getContextMenuActions(): array
return $this->evaluate($this->contextMenuActions);
}

public function contextMenuActions(array|\Closure $contextMenuActions): static
public function contextMenuActions(array | \Closure $contextMenuActions): static
{
$this->contextMenuActions = $contextMenuActions;

Expand Down

0 comments on commit 82d768a

Please sign in to comment.