Renders the cell content.

@param BaseColumn $column
@param int|null $index
@param int|null $columnIndex
@return string
482429
public function renderCellContent($column, $index, $columnIndex = null)
    {
        $id    = $column->getElementId($index);
        $name  = $column->getElementName($index);

        /**
         * This class inherits iconMap from BaseRenderer
         * If the input to be rendered is a drag column, we give it the appropriate icon class
         * via the $options array
         */
        $options = ['id' => $id];
        if (substr($id, -4) === 'drag') {
            $options = ArrayHelper::merge($options, ['class' => $this->iconMap['drag-handle']]);
        }

        $input = $column->renderInput($name, $options, [
            'id' => $id,
            'name' => $name,
            'indexPlaceholder' => $this->getIndexPlaceholder(),
            'index' => $index,
            'columnIndex' => $columnIndex,
            'context' => $this->context,
        ]);

        if ($column->isHiddenInput()) {
            return $input;
        }

        $hasError = false;
        $error = '';

        if ($index !== null) {
            $error = $column->getFirstError($index);
            $hasError = !empty($error);
        }

        if ($column->enableError) {
            $input .= "\n" . $column->renderError($error);
        }

        $wrapperOptions = ['class' => 'field-' . $id];
        if ($this->isBootstrapTheme()) {
            Html::addCssClass($wrapperOptions, 'form-group');
        }

        if ($hasError) {
            Html::addCssClass($wrapperOptions, 'has-error');
        }

        if (is_callable($column->columnOptions)) {
            $columnOptions = call_user_func($column->columnOptions, $column->getModel(), $index, $this->context);
        } else {
            $columnOptions = $column->columnOptions;
        }

        Html::addCssClass($columnOptions, 'list-cell__' . $column->name);

        $input = Html::tag('div', $input, $wrapperOptions);

        return Html::tag('td', $input, $columnOptions);
    }
1090181
private function renderCell($index, $row = null)
    {
        $cell = $row
            ? $row[ $index ]
            : '-';
        $width = $this->columnWidths[ $index ];
        $pad = $row
            ? $width - strlen($cell)
            : $width;
        $padding = str_repeat(
            $row
                ? ' '
                : '-',
            $this->padding
        );
        $output = '';
        if ($index === 0) {
            $output .= str_repeat(' ', $this->leftMargin);
        }
        if ($this->isShowBorder) {
            $output .= $row
                ? '|'
                : '+';
        }
        $output .= $padding; # left padding
        $output .= str_pad(
            $cell,
            $width,
            $row
                ? ' '
                : '-'
        ); # cell content
        $output .= $padding; # right padding

        $row = is_array($row) ? $row : [];
        if ($index == count($row) - 1 && $this->isShowBorder) {
            $output .= $row
                ? '|'
                : '+';
        }

        return $output;
    }
16396
public function addColumn($content, $columnIndex = null, $rowIndex = null)
    {
        $rowIndex = $rowIndex === null
            ? $this->rowIndex
            : $rowIndex;
        if ($columnIndex === null) {
            $columnIndex = isset($this->rows[ $rowIndex ])
                ? count($this->rows[ $rowIndex ])
                : 0;
        }
        $this->rows[ $rowIndex ][ $columnIndex ] = $content;

        return $this;
    }
581868
public function getColumnStyle($columnIndex) {
        if (isset($this->columnStyles[$columnIndex])) {
            return $this->columnStyles[$columnIndex];
        }

        return $this->getStyle();
    }
646816
protected function _addColumn($column)
    {
        if (! is_string($column)) {
            throw new InvalidArgumentException('Expecting a string as Index Column');
        }

        $this->_columns[$column] = new Identifier($column);
    }
1235670
public function columnType(int $index) : int
    {
        if (empty($this->samples)) {
            throw new RuntimeException('Cannot determine data type'
                . ' of an empty data frame.');
        }

        $sample = reset($this->samples);

        if (!isset($sample[$index])) {
            throw new InvalidArgumentException("Column $index does"
             . ' not exist.');
        }

        return DataType::determine($sample[$index]);
    }
1305931
protected function renderRowGroup($groups, $index, $colspan)
    {
        if ($groups && isset($groups[$index])) {
            foreach ($groups[$index] as $grow) {
                if ($this->paging) {
                    $grow[3] = "display:none;" . $grow[3];
                }
                echo "<tr from='$grow[0]' to='$grow[1]' class='row-group" . ($grow[4] ? " $grow[4]" : "") . "' " . ($grow[3] ? "style='$grow[3]'" : "") . ">";
                if (strpos($grow[2], "<td") === 0) {
                    echo $grow[2];
                } else {
                    echo "<td colspan='$colspan'>$grow[2]</td>";
                }
                echo "</tr>";
            }
        }
    }
656093
public function getIndexDDL(Index $index)
    {
        return sprintf('%sINDEX %s (%s)',
            $this->getIndexType($index),
            $this->quoteIdentifier($index->getName()),
            $this->getIndexColumnListDDL($index)
        );
    }
143851
public function renderColumn($column, $row, $field) 
	{ 
		switch ($field->fieldType) 
		{ 
			case EditListFieldType::TEXT:
			{ 
				XmlUtil::AddTextNode($column, $row->getField($field->fieldData));
				break; 
			} 
			case EditListFieldType::IMAGE:
			{ 
//				XmlnukeImage $xmi
				$xmi = new XmlnukeImage( $row->getField($field->fieldData));
				$xmi->generateObject($column); 
				break; 
			}
			case EditListFieldType::LOOKUP:
			{ 
				$value = $row->getField($field->fieldData);
				if ($value == "")
				{
					$value = "---";
				}
				else 
				{
					$value = isset($field->arrayLookup[$value]) ? $field->arrayLookup[$value] : "[$value ?]";
				}
				XmlUtil::AddTextNode($column, $value);
				break;
			}
			case EditListFieldType::FORMATTER:
			{
				$obj = $field->formatter;
				if (is_null($obj) || !($obj instanceof IEditListFormatter))
				{
					throw new InvalidArgumentException("The EditListFieldType::FORMATTER requires a valid IEditListFormatter class");
				}
				else 
				{
					XmlUtil::AddTextNode($column, $obj->Format($row, $field->fieldData, $row->getField($field->fieldData)));
				}
				break;
			}
			default:
			{
				XmlUtil::AddTextNode($column, $row->getField($field->fieldData));
				break;
			}
		}
	}
106914
protected function renderFilter($column)
    {
        $sFilter = $column['sFilter'];

        switch ($sFilter['type']) {
            case 'text'   :
                $r = '<div class="input-group">'
                        .($this->renderFilterOperators ?
                        '<div class="input-group-addon"><select class=form-control>'
                            .'<option value="">'.$this->trans('').'</option>'
                            .$this->formatOption($column['data'], '[!]',     $this->trans('!'))
                            .$this->formatOption($column['data'], '[=]',     $this->trans('='))
                            .$this->formatOption($column['data'], '[!=]',    $this->trans('!='))
                            .$this->formatOption($column['data'], 'reg:',    $this->trans('REGEXP'))
                            .$this->formatOption($column['data'], 'lenght:', $this->trans('Lenght'))
                        .'</select></div>' : '')
                        .'<input class="form-control sSearch" type="text" value="'.(isset($column['data']) && isset($this->filters[$column['data']]) ? preg_replace('/^(\[(!|<=|>=|=|<|>|<>|!=)\]|reg:|in:|lenght:)/i', '', $this->filters[$column['data']]) : '').'">'
                    .'</div></div>';

                return $r;
            case 'number' : case 'date' :
                $r = '<div class="input-group">'
                        .($this->renderFilterOperators ?
                        '<div class="input-group-addon"><select class=form-control>'
                            .'<option value="">'.$this->trans('').'</option>'
                            .$this->formatOption($column['data'], '[=]',  $this->trans('='))
                            .$this->formatOption($column['data'], '[!=]', $this->trans('!='))
                            .$this->formatOption($column['data'], '[<=]', $this->trans('<='))
                            .$this->formatOption($column['data'], '[<]',  $this->trans('<'))
                            .$this->formatOption($column['data'], '[>=]', $this->trans('>='))
                            .$this->formatOption($column['data'], '[>]',  $this->trans('>'))
                            .$this->formatOption($column['data'], 'in:',  $this->trans('IN(int,int,int...)'))
                            .$this->formatOption($column['data'], 'reg:', $this->trans('REGEXP'))
                        .'</select></div>' : '')
                        .'<input class="form-control sSearch" type="text" value="'.(isset($this->filters[$column['data']]) ? preg_replace('/^(\[(<=|>=|=|<|>|<>|!=)\]|reg:|in:)/i', '', $this->filters[$column['data']]) : '').'">'
                    .'</div></div>';

                return $r;
            case 'select' :
                $o = '';
                if (isset($sFilter['options'])) {
                    $sFilter['values'] = $sFilter['options'];
                }
                if (isset($sFilter['values'])) {
                    foreach ($sFilter['values'] as $k => $v) {
                        $o .= '<option value="'.$k.'"'.(isset($column['data']) && isset($this->filters[$column['data']]) && $this->filters[$column['data']] == $k ? ' selected' : '').'>'.$v.'</option>';
                    }
                }
                /** Auto-generate options if the data are loaded **/
                elseif (isset($this->jsInitParameters['data'])) {
                    // TODO
                }

                return '<select class="form-control sSearch"><option value=""></option>'.$o.'</select>';
        }
    }
824261
public function addColumn(BlockInterface $column, $index = null)
    {
        $this->mappingColumns = null;

        if (null !== $index) {
            array_splice($this->columns, $index, 0, $column);
        } else {
            array_push($this->columns, $column);
        }

        return $this;
    }
919347
public function addRenderer($index, $method = null)
    {
        $this->renderers[$index] = is_null($method) ?  $index : $method;
        return $this;
    }
531641
public function column($index = 0)
    {
        $stmt = $this->execute();

        if ($stmt) {
            return $stmt->fetchAll(PDO::FETCH_COLUMN, $index);
        } else {
            return false;
        }
    }
1185014
private function renderActionColumn($index = null, $item = null)
    {
        $content = $this->getActionButton($index) . $this->getExtraButtons($index, $item);

        return Html::tag('td', $content, [
            'class' => 'list-cell__button',
        ]);
    }
1253244
function(index, columnName) {
      var r = this.at(index);
      if(!r) {
        return null;
      }
      return r.get(columnName);
    }
1251859
void addColumn(final WTableColumn column, final int columnIndex) {
		WComponent renderer = column.getRenderer();

		if (renderer == null) {
			Class<? extends WComponent> rendererClass = column.getRendererClass();

			if (!(BeanProviderBound.class.isAssignableFrom(rendererClass))
					&& !(BeanBound.class.isAssignableFrom(rendererClass))
					&& !(DataBound.class.isAssignableFrom(rendererClass))) {
				throw new IllegalArgumentException(
						"Column renderers must be BeanProvider-, Bean- or Data-Bound");
			}

			add(new RendererWrapper(this, rendererClass, columnIndex));
		} else {
			if (!(renderer instanceof BeanProviderBound) && !(renderer instanceof BeanBound)
					&& !(renderer instanceof DataBound)) {
				throw new IllegalArgumentException(
						"Column renderers must be BeanProvider-, Bean- or Data-Bound");
			}

			add(new RendererWrapper(this, renderer, columnIndex));
		}
	}
589585
public function getIndexDDL(Index $index)
    {
        return sprintf('%sINDEX %s (%s)',
            $index->isUnique() ? 'UNIQUE ' : '',
            $this->quoteIdentifier($index->getName()),
            $this->getColumnListDDL($index->getColumnObjects())
        );
    }