@@ 7-20 (lines=14) @@ | ||
4 | ||
5 | use Encore\Admin\Admin; |
|
6 | ||
7 | class Datetime extends AbstractDisplayer |
|
8 | { |
|
9 | public function display($format = '') |
|
10 | { |
|
11 | return Admin::component('admin::components.grid-inline-datetime', [ |
|
12 | 'key' => $this->getKey(), |
|
13 | 'value' => $this->getValue(), |
|
14 | 'format' => $format, |
|
15 | 'name' => $this->column->getName(), |
|
16 | 'resource' => $this->getResource(), |
|
17 | 'locale' => config('app.locale'), |
|
18 | ]); |
|
19 | } |
|
20 | } |
|
21 |
@@ 7-20 (lines=14) @@ | ||
4 | ||
5 | use Encore\Admin\Admin; |
|
6 | ||
7 | class Upload extends AbstractDisplayer |
|
8 | { |
|
9 | public function display($multiple = false) |
|
10 | { |
|
11 | return Admin::component('admin::components.grid-inline-upload', [ |
|
12 | 'key' => $this->getKey(), |
|
13 | 'name' => $this->column->getName(), |
|
14 | 'value' => $this->getValue(), |
|
15 | 'target' => "inline-upload-{$this->getKey()}", |
|
16 | 'resource' => $this->getResource(), |
|
17 | 'multiple' => $multiple, |
|
18 | ]); |
|
19 | } |
|
20 | } |
|
21 |