public function rowClickAction(string $action): ModelList
    {
        if ( ! array_has($this->main, 'default_action')) {
            $this->main['default_action'] = [];
        }

        $this->main['default_action'][] = $action;

        return $this;
    }
public function rowClickAction(string $action): ModelList
    {
        if ( ! array_has($this->main, 'default_action')) {
            $this->main['default_action'] = [];
        }

        $this->main['default_action'][] = $action;

        return $this;
    }
public function rowClickAction ( string $ action ) : ModelList { if ( ! array_has ( $ this -> main , 'default_action' ) ) { $ this -> main [ 'default_action' ] = [ ] ; } $ this -> main [ 'default_action' ] [ ] = $ action ; return $ this ; }
Adds an action to be performed when clicking a row.

Will stack if called multiple times, in order.
The first action that is permitted, is performed.

@param string $action    action alias
@return ModelList|$this
Adds an action to be performed when clicking a row .