public function addColumn($width = 'auto')
    {
        /** @type View $c */
        $c = $this->add('View');
        if (is_numeric($width)) {
            $this->mode = 'grid';
            $c->addClass('atk-col-'.$width);

            return $c;
        } elseif (substr($width, -1) == '%') {
            $this->mode = 'pct';
            $c->addStyle('width', $width);
        }
        $this->template->trySet('row_class', 'atk-cells');
        $c->addClass('atk-cell');

        return $c;
    }
public function addColumn($width = 'auto')
    {
        /** @type View $c */
        $c = $this->add('View');
        if (is_numeric($width)) {
            $this->mode = 'grid';
            $c->addClass('atk-col-'.$width);

            return $c;
        } elseif (substr($width, -1) == '%') {
            $this->mode = 'pct';
            $c->addStyle('width', $width);
        }
        $this->template->trySet('row_class', 'atk-cells');
        $c->addClass('atk-cell');

        return $c;
    }
public function addColumn ( $ width = 'auto' ) { /** @type View $c */ $ c = $ this -> add ( 'View' ) ; if ( is_numeric ( $ width ) ) { $ this -> mode = 'grid' ; $ c -> addClass ( 'atk-col-' . $ width ) ; return $ c ; } elseif ( substr ( $ width , - 1 ) == '%' ) { $ this -> mode = 'pct' ; $ c -> addStyle ( 'width' , $ width ) ; } $ this -> template -> trySet ( 'row_class' , 'atk-cells' ) ; $ c -> addClass ( 'atk-cell' ) ; return $ c ; }
Adds new column to the set.
Argument can be numeric for 12GS, percent for flexi design or omitted for equal columns.

@param int|string $width

@return View
Adds new column to the set . Argument can be numeric for 12GS percent for flexi design or omitted for equal columns .