Skip to content
Snippets Groups Projects
Commit bdf0bd81 authored by Kevin Hill's avatar Kevin Hill
Browse files

DateCell needed to have toJavascript()

parent 4c2b01f5
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -95,15 +95,15 @@ class DateCell extends Cell implements Javascriptable
/**
* @inheritdoc
*/
public function getJavascriptFormat()
public function toJavascript()
{
return 'Date(%d,%d,%d,%d,%d,%d)';
return vsprintf('Date(%d,%d,%d,%d,%d,%d)', $this->getDateValues());
}
 
/**
* @inheritdoc
*/
public function getJavascriptSource()
private function getDateValues()
{
return [
isset($this->value->year) ? $this->value->year : 'null',
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment