mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR SSF-53 : add ability to add customised class to GridField table
This commit is contained in:
parent
5548c66a49
commit
7bdc3d13fc
@ -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'
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user