mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Addition of extend for newRowClasses (#4711)
* Addition of extend for newRowClasses Allows for creation of extension of row classes in gridfield. * Update GridField.php Including suggestions by @tractorcow and @dhensby.
This commit is contained in:
parent
c7de1f40e1
commit
ea3aa0063a
@ -582,6 +582,8 @@ class GridField extends FormField {
|
|||||||
} else {
|
} else {
|
||||||
$classes[] = 'odd';
|
$classes[] = 'odd';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->extend('updateNewRowClasses', $classes, $total, $index, $record);
|
||||||
|
|
||||||
return $classes;
|
return $classes;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user