Merge pull request #502 from Flynsarmy/dataGridCurrencyFormat
Support custom currency formats in Grid widget
This commit is contained in:
commit
3b96e50273
|
|
@ -226,7 +226,7 @@ class Grid extends WidgetBase
|
|||
|
||||
case 'currency':
|
||||
$item['type'] = 'numeric';
|
||||
$item['format'] = '$0,0.00';
|
||||
$item['format'] = isset($column['format']) ? $column['format'] : '$0,0.00';
|
||||
break;
|
||||
|
||||
case 'checkbox':
|
||||
|
|
@ -258,4 +258,4 @@ class Grid extends WidgetBase
|
|||
$this->addJs('js/datagrid.js', 'core');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue