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