original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Adds new column to the set . Argument can be numeric for 12GS percent for flexi design or omitted for equal columns .