Skip to content

Commit

Permalink
Merge pull request #4 from CodeWithDennis/3-support-table-action
Browse files Browse the repository at this point in the history
Add SimpleMap Table Action
  • Loading branch information
CodeWithDennis authored Sep 4, 2024
2 parents b64dfc9 + 1cdadb5 commit 4f4d362
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions src/Components/Tables/SimpleMap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php

namespace CodeWithDennis\SimpleMap\Components\Tables;

use CodeWithDennis\SimpleMap\Components\Concerns\HasAddress;
use CodeWithDennis\SimpleMap\Components\Concerns\HasAvoid;
use CodeWithDennis\SimpleMap\Components\Concerns\HasCenter;
use CodeWithDennis\SimpleMap\Components\Concerns\HasDestination;
use CodeWithDennis\SimpleMap\Components\Concerns\HasFov;
use CodeWithDennis\SimpleMap\Components\Concerns\HasHeading;
use CodeWithDennis\SimpleMap\Components\Concerns\HasKey;
use CodeWithDennis\SimpleMap\Components\Concerns\HasLanguage;
use CodeWithDennis\SimpleMap\Components\Concerns\HasLocation;
use CodeWithDennis\SimpleMap\Components\Concerns\HasMapMode;
use CodeWithDennis\SimpleMap\Components\Concerns\HasMapType;
use CodeWithDennis\SimpleMap\Components\Concerns\HasModalContent;
use CodeWithDennis\SimpleMap\Components\Concerns\HasMode;
use CodeWithDennis\SimpleMap\Components\Concerns\HasOrigin;
use CodeWithDennis\SimpleMap\Components\Concerns\HasPitch;
use CodeWithDennis\SimpleMap\Components\Concerns\HasQuery;
use CodeWithDennis\SimpleMap\Components\Concerns\HasRegion;
use CodeWithDennis\SimpleMap\Components\Concerns\HasUnits;
use CodeWithDennis\SimpleMap\Components\Concerns\HasWaypoints;
use CodeWithDennis\SimpleMap\Components\Concerns\HasZoom;
use Filament\Tables\Actions\Action;

class SimpleMap extends Action
{
use HasAddress;
use HasAvoid;
use HasAvoid;
use HasCenter;
use HasDestination;
use HasFov;
use HasHeading;
use HasKey;
use HasLanguage;
use HasLocation;
use HasMapMode;
use HasMapType;
use HasModalContent;
use HasMode;
use HasOrigin;
use HasOrigin;
use HasPitch;
use HasQuery;
use HasRegion;
use HasRegion;
use HasUnits;
use HasUnits;
use HasWaypoints;
use HasZoom;

protected function setUp(): void
{
parent::setUp();

$this->slideOver()
->modalHeading(false)
->modalCancelAction(false)
->modalSubmitAction(false)
->modalFooterActions(null)
->slideOver()
->modal();
}
}

0 comments on commit 4f4d362

Please sign in to comment.