| 1 | <?php |
||
| 7 | class Image extends Column |
||
| 8 | { |
||
| 9 | use UploadStorageTrait; |
||
| 10 | |||
| 11 | protected $template = '<img v-viewer="column.options" :width="value.width" :src="value.image" v-if="value.image">'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $imageWidth = '80px'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function getImageWidth() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $width |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function setImageWidth($width) |
||
| 37 | |||
| 38 | public function getValue() |
||
| 50 | |||
| 51 | public function toArray() |
||
| 60 | } |
||
| 61 |