1 | <?php |
||
10 | class File extends Field |
||
11 | { |
||
12 | protected $type = 'upload'; |
||
13 | |||
14 | /** |
||
15 | * Editor instance. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $editor = 'editor'; |
||
20 | |||
21 | /** |
||
22 | * @param string $name |
||
23 | * @param string $label |
||
24 | * @return static|\Yajra\DataTables\Html\Editor\Fields\Field |
||
25 | */ |
||
26 | public static function make($name, $label = '') |
||
33 | |||
34 | /** |
||
35 | * @param string $value |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function ajax($value) |
||
44 | |||
45 | /** |
||
46 | * @param string $value |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function ajaxData($value) |
||
55 | |||
56 | /** |
||
57 | * @param bool $value |
||
58 | * @return $this |
||
59 | */ |
||
60 | public function dragDrop($value = true) |
||
66 | |||
67 | /** |
||
68 | * @param string $value |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function dragDropText($value) |
||
77 | |||
78 | /** |
||
79 | * @param string $value |
||
80 | * @return $this |
||
81 | */ |
||
82 | public function fileReadText($value) |
||
88 | |||
89 | /** |
||
90 | * @param string $value |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function noFileText($value) |
||
99 | |||
100 | /** |
||
101 | * @param string $value |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function processingText($value) |
||
110 | |||
111 | /** |
||
112 | * @param string $value |
||
113 | * @return $this |
||
114 | */ |
||
115 | public function uploadText($value) |
||
121 | |||
122 | /** |
||
123 | * Set editor instance for file upload. |
||
124 | * |
||
125 | * @param string $editor |
||
126 | * @return $this |
||
127 | */ |
||
128 | public function editor($editor) |
||
134 | |||
135 | /** |
||
136 | * Display image upon upload. |
||
137 | * |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function displayImage() |
||
144 | |||
145 | /** |
||
146 | * @param string $value |
||
147 | * @return $this |
||
148 | */ |
||
149 | public function display($value) |
||
155 | |||
156 | /** |
||
157 | * Display the file path. |
||
158 | * |
||
159 | * @return $this |
||
160 | */ |
||
161 | public function displayFile() |
||
165 | |||
166 | /** |
||
167 | * @param string $value |
||
168 | * @return $this |
||
169 | */ |
||
170 | public function clearText($value = 'Clear') |
||
176 | |||
177 | /** |
||
178 | * @param string $value |
||
179 | * @return $this |
||
180 | */ |
||
181 | public function noImageText($value = 'No image') |
||
187 | |||
188 | /** |
||
189 | * @param bool $state |
||
190 | * @return $this |
||
191 | */ |
||
192 | public function multiple($state = true) |
||
200 | } |
||
201 |