Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd55b92

Browse files
committed
Add missing upload field options as per doc.
https://editor.datatables.net/reference/field/upload#Options
1 parentd8091a6 commitbd55b92

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+
publicfunctionajax($value)
39+
{
40+
$this->attributes['ajax'] =$value;
41+
42+
return$this;
43+
}
44+
45+
/**
46+
* @param string $value
47+
* @return $this
48+
*/
49+
publicfunctionajaxData($value)
50+
{
51+
$this->attributes['ajaxData'] =$value;
52+
53+
return$this;
54+
}
55+
56+
/**
57+
* @param bool $value
58+
* @return $this
59+
*/
60+
publicfunctiondragDrop($value =true)
61+
{
62+
$this->attributes['dragDrop'] =$value;
63+
64+
return$this;
65+
}
66+
67+
/**
68+
* @param string $value
69+
* @return $this
70+
*/
71+
publicfunctiondragDropText($value)
72+
{
73+
$this->attributes['dragDropText'] =$value;
74+
75+
return$this;
76+
}
77+
78+
/**
79+
* @param string $value
80+
* @return $this
81+
*/
82+
publicfunctionfileReadText($value)
83+
{
84+
$this->attributes['fileReadText'] =$value;
85+
86+
return$this;
87+
}
88+
89+
/**
90+
* @param string $value
91+
* @return $this
92+
*/
93+
publicfunctionnoFileText($value)
94+
{
95+
$this->attributes['noFileText'] =$value;
96+
97+
return$this;
98+
}
99+
100+
/**
101+
* @param string $value
102+
* @return $this
103+
*/
104+
publicfunctionprocessingText($value)
105+
{
106+
$this->attributes['processingText'] =$value;
107+
108+
return$this;
109+
}
110+
111+
/**
112+
* @param string $value
113+
* @return $this
114+
*/
115+
publicfunctionuploadText($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)

[8]ページ先頭

©2009-2025 Movatter.jp