Skip to content

Commit 27668a8

Browse files
committed
Add renderRaw method to set render value as is.
1 parent ca0c44d commit 27668a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Html/Column.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,20 @@ public function render($value)
437437
return $this;
438438
}
439439

440+
/**
441+
* Set column renderer with give raw value.
442+
*
443+
* @param mixed $value
444+
* @return $this
445+
* @see https://datatables.net/reference/option/columns.render
446+
*/
447+
public function renderRaw($value)
448+
{
449+
$this->attributes['render'] = $value;
450+
451+
return $this;
452+
}
453+
440454
/**
441455
* Parse render attribute.
442456
*

0 commit comments

Comments
 (0)