MINOR SSF-53 : add ability to add customised class to GridField table

This commit is contained in:
Normann Lou 2012-03-02 16:27:34 +13:00
parent 5548c66a49
commit 7bdc3d13fc

View File

@ -355,7 +355,7 @@ class GridField extends FormField {
$attrs['data-name'] = $this->getName();
$tableAttrs = array(
'id' => isset($this->id) ? $this->id : null,
'class' => 'ss-gridfield-table',
'class' => ($extras = $this->extraClass())?'ss-gridfield-table '.$extras:'ss-gridfield-table',
'cellpadding' => '0',
'cellspacing' => '0'
);