Permalink
Browse files

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

  • Loading branch information...
1 parent 5548c66 commit 7bdc3d13fc1d095ed9877c6958f78afa8a609e33 @normann normann committed Mar 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'
);

0 comments on commit 7bdc3d1

Please sign in to comment.