Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7bdc3d13fc1d095ed9877c6958f78afa8a609e33 1 parent 5548c66
@normann normann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/gridfield/GridField.php
View
2  forms/gridfield/GridField.php
@@ -355,7 +355,7 @@ public function FieldHolder() {
$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'
);
Please sign in to comment.
Something went wrong with that request. Please try again.