Skip to content

Commit

Permalink
Issue origgami#44 fix
Browse files Browse the repository at this point in the history
This change will allow usage of the "class" option for the grouped fields
  • Loading branch information
belenski authored May 3, 2021
1 parent 4d1a2a6 commit f229645
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Grid/Group/GroupColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit f229645

Please sign in to comment.