Skip to content

Commit

Permalink
Merge branch '4.0'
Browse files Browse the repository at this point in the history
* 4.0:
  Bump v4.35.1 🚀
  Add missing upload field options as per doc. https://editor.datatables.net/reference/field/upload#Options
  • Loading branch information
yajra committed Nov 13, 2020
2 parents 7d50607 + 6c902a8 commit e81a80c
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,10 @@

## CHANGELOG

### v4.35.1 - 11-03-2020

- Add missing upload field options as per doc. [#152]

### v4.35.0 - 11-03-2020

- Add formatted column factory. [#147]
Expand Down Expand Up @@ -709,6 +713,7 @@ To `created_at` with title `Created At`
[#144]: https://github.com/yajra/laravel-datatables-html/pull/144
[#137]: https://github.com/yajra/laravel-datatables-html/pull/137
[#147]: https://github.com/yajra/laravel-datatables-html/pull/147
[#152]: https://github.com/yajra/laravel-datatables-html/pull/152

[#134]: https://github.com/yajra/laravel-datatables-html/issues/134
[#3]: https://github.com/yajra/laravel-datatables-html/issues/3
Expand Down
88 changes: 88 additions & 0 deletions src/Html/Editor/Fields/File.php
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 e81a80c

Please sign in to comment.