Skip to content

Commit 27f6579

Browse files
authored
Merge pull request #152 from yajra/patch1
Add missing upload field options as per doc.
2 parents d8091a6 + bd55b92 commit 27f6579

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

src/Html/Editor/Fields/File.php

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,94 @@ public static function make($name, $label = '')
3131
return $field->displayFile()->clearText()->noImageText();
3232
}
3333

34+
/**
35+
* @param string $value
36+
* @return $this
37+
*/
38+
public function ajax($value)
39+
{
40+
$this->attributes['ajax'] = $value;
41+
42+
return $this;
43+
}
44+
45+
/**
46+
* @param string $value
47+
* @return $this
48+
*/
49+
public function ajaxData($value)
50+
{
51+
$this->attributes['ajaxData'] = $value;
52+
53+
return $this;
54+
}
55+
56+
/**
57+
* @param bool $value
58+
* @return $this
59+
*/
60+
public function dragDrop($value = true)
61+
{
62+
$this->attributes['dragDrop'] = $value;
63+
64+
return $this;
65+
}
66+
67+
/**
68+
* @param string $value
69+
* @return $this
70+
*/
71+
public function dragDropText($value)
72+
{
73+
$this->attributes['dragDropText'] = $value;
74+
75+
return $this;
76+
}
77+
78+
/**
79+
* @param string $value
80+
* @return $this
81+
*/
82+
public function fileReadText($value)
83+
{
84+
$this->attributes['fileReadText'] = $value;
85+
86+
return $this;
87+
}
88+
89+
/**
90+
* @param string $value
91+
* @return $this
92+
*/
93+
public function noFileText($value)
94+
{
95+
$this->attributes['noFileText'] = $value;
96+
97+
return $this;
98+
}
99+
100+
/**
101+
* @param string $value
102+
* @return $this
103+
*/
104+
public function processingText($value)
105+
{
106+
$this->attributes['processingText'] = $value;
107+
108+
return $this;
109+
}
110+
111+
/**
112+
* @param string $value
113+
* @return $this
114+
*/
115+
public function uploadText($value)
116+
{
117+
$this->attributes['uploadText'] = $value;
118+
119+
return $this;
120+
}
121+
34122
/**
35123
* Set editor instance for file upload.
36124
*

0 commit comments

Comments
 (0)