Skip to content

Commit

Permalink
Merge pull request #152 from yajra/patch1
Browse files Browse the repository at this point in the history
Add missing upload field options as per doc.
  • Loading branch information
yajra authored Nov 13, 2020
2 parents d8091a6 + bd55b92 commit 27f6579
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions src/Html/Editor/Fields/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,94 @@ public static function make($name, $label = '')
return $field->displayFile()->clearText()->noImageText();
}

/**
* @param string $value
* @return $this
*/
public function ajax($value)
{
$this->attributes['ajax'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function ajaxData($value)
{
$this->attributes['ajaxData'] = $value;

return $this;
}

/**
* @param bool $value
* @return $this
*/
public function dragDrop($value = true)
{
$this->attributes['dragDrop'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function dragDropText($value)
{
$this->attributes['dragDropText'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function fileReadText($value)
{
$this->attributes['fileReadText'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function noFileText($value)
{
$this->attributes['noFileText'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function processingText($value)
{
$this->attributes['processingText'] = $value;

return $this;
}

/**
* @param string $value
* @return $this
*/
public function uploadText($value)
{
$this->attributes['uploadText'] = $value;

return $this;
}

/**
* Set editor instance for file upload.
*
Expand Down

0 comments on commit 27f6579

Please sign in to comment.