src/Form.php
public function setGroupDisplayRules($rules = [], $selector = '.atk-form-group')
    {
        if (is_object($selector) && isset($selector->name)) {
            $selector = '#'.$selector->name;
        }

        $this->fieldsDisplayRules = $rules;
        $this->fieldDisplaySelector = $selector;

        return $this;
    }
public function setGroupDisplayRules($rules = [], $selector = '.atk-form-group')
    {
        if (is_object($selector) && isset($selector->name)) {
            $selector = '#'.$selector->name;
        }

        $this->fieldsDisplayRules = $rules;
        $this->fieldDisplaySelector = $selector;

        return $this;
    }
public function setGroupDisplayRules ( $ rules = [ ] , $ selector = '.atk-form-group' ) { if ( is_object ( $ selector ) && isset ( $ selector -> name ) ) { $ selector = '#' . $ selector -> name ; } $ this -> fieldsDisplayRules = $ rules ; $ this -> fieldDisplaySelector = $ selector ; return $ this ; }
Set display rule for a group collection.

@param array         $rules
@param string|object $selector

@return $this
Set display rule for a group collection .