-
Notifications
You must be signed in to change notification settings - Fork 554
/
Map.php
36 lines (32 loc) · 913 Bytes
/
Map.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace A17\Twill\View\Components\Fields;
use Illuminate\Contracts\View\View;
class Map extends TwillFormComponent
{
public function __construct(
string $name,
string $label,
bool $renderForBlocks = false,
bool $renderForModal = false,
?string $note = '',
bool $inModal = false,
// Component specific
public bool $showMap = true,
public bool $openMap = false,
public bool $saveExtendedData = false,
public bool $autoDetectLatLngValue = false
) {
parent::__construct(
name: $name,
label: $label,
note: $note,
inModal: $inModal,
renderForBlocks: $renderForBlocks,
renderForModal: $renderForModal
);
}
public function render(): View
{
return view('twill::partials.form._map', $this->data());
}
}