diff --git a/Grid/Group/GroupColumn.php b/Grid/Group/GroupColumn.php index 2b8ae26..4bc54e6 100644 --- a/Grid/Group/GroupColumn.php +++ b/Grid/Group/GroupColumn.php @@ -33,6 +33,11 @@ public function setColumnClassCmb2() { } public function __construct( $field, \Cmb2Grid\Grid\Cmb2Grid $grid ) { + if ( is_array( $field ) && isset( $field['class'] ) ) { + $this->setColumnClass( $field['class'] ); + $field = $field[0]; + } + $this->setParentFieldId( $field[0] ); $this->setFieldId( $field[1] ); $field = cmb2_get_field( $grid->getCmb2Obj(), $this->getParentFieldId() );