mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add ability to specify one CSS class to apply to all tab panels (#3761)
Credit to @ebashu-on-holidays
This commit is contained in:
parent
0ffdbc5efd
commit
9da0af4533
@ -125,7 +125,7 @@ body {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
min-width: 100%;
|
||||
|
||||
> .layout-row {
|
||||
display: table-row;
|
||||
|
@ -182,6 +182,10 @@ class FormTabs implements IteratorAggregate, ArrayAccess
|
||||
*/
|
||||
public function getPaneCssClass($index = null, $label = null)
|
||||
{
|
||||
if (is_string($this->paneCssClass)) {
|
||||
return $this->paneCssClass;
|
||||
}
|
||||
|
||||
if ($index !== null && isset($this->paneCssClass[$index])) {
|
||||
return $this->paneCssClass[$index];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user