Build column html.
974156
public function build()
    {
        $this->startColumn();

        foreach ($this->contents as $content) {
            if ($content instanceof Renderable || $content instanceof Grid) {
                echo $content->render();
            } else {
                echo (string) $content;
            }
        }

        $this->endColumn();
    }
539661
function(theadCell) {
    var elTh;

    // Validate Column instance
    if(theadCell instanceof YAHOO.widget.Column) {
        var oColumn = theadCell;
        elTh = oColumn.getThEl();
        if(elTh) {
            return elTh;
        }
    }
    // Validate HTML element
    else {
        var el = Dom.get(theadCell);

        if(el && (el.ownerDocument == document)) {
            // Validate TH element
            if(el.nodeName.toLowerCase() != "th") {
                // Traverse up the DOM to find the corresponding TR element
                elTh = Dom.getAncestorByTagName(el,"th");
            }
            else {
                elTh = el;
            }

            return elTh;
        }
    }

    return null;
}
758631
protected function buildTemplate()
    {
        $this->t_wrap->del('rows');
        $this->t_wrap->appendHTML('rows', '{rows}');

        for ($row = 1; $row <= $this->rows; $row++) {
            $this->t_row->del('column');

            for ($col = 1; $col <= $this->columns; $col++) {
                $this->t_col->set('Content', '{$r'.$row.'c'.$col.'}');

                $this->t_row->appendHTML('column', $this->t_col->render());
            }

            $this->t_wrap->appendHTML('rows', $this->t_row->render());
        }
        $this->t_wrap->appendHTML('rows', '{/rows}');
        $tmp = new Template($this->t_wrap->render());

        $this->template->template['rows#1'] = $tmp->template['rows#1'];

        $this->template->rebuildTags();
        $this->addClass($this->words[$this->columns].' column');
    }
1007343
public function html(): Builder
    {
        /** @var Builder $table */
        $table = app('datatables.html');

        return $table
            ->columns($this->getColumns())
            ->ajax($this->getAjaxOptions())
            ->parameters($this->getParameters());
    }
1224187
private function gridFooterBuild()
    {
        $html = '<tfoot class="table-header">' . self::$EOL;
        $html .= '<tr>' . self::$EOL;

        if (!isset($this->_arrayData['config']['disableckeckall']) or $this->_arrayData['config']['disableckeckall'] != 'true') {
            $html .= '<th class="nosorter width-select">&nbsp;</th>' . self::$EOL;
        }

        foreach ($this->_arrayData['header'] as $value) {

            $class = '';
            if (isset($value['class']) and !empty($value['class'])) {
                $class .= $value['class'];
            }

            if (isset($value['sortable']) and $value['sortable'] == 'false') {
                $class .= ' nosorter ';
            }

            if (isset($value['searchable']) and $value['searchable'] == 'false') {
                $class .= ' filter-false ';
            }

            if (isset($value['type'])) {
                switch ($value['type']) {
                    case 'datetime':
                        $class .= ' width-datetime ';
                        break;
                    case 'date':
                        $class .= ' width-date ';
                        break;
                    case 'status':
                        $class .= ' width-status ';
                        break;
                    case 'primarykey':
                        $class .= ' width-primary ';
                        break;
                    case 'integer':
                    case 'int':
                    case 'float':
                    case 'double':
                    case 'decimal':
                        $class .= ' width-number ';
                        break;
                    case 'money':
                        $class .= ' width-money ';
                        break;
                    case 'char':
                        $class .= ' width-shortstring ';
                        break;
                    case 'varchar':
                        $class .= ' width-mediumstring ';
                        break;
                    default:
                        break;
                }
            }

            $html .= "<th class='{$class}'>" . $value['value'] . '</th>' . self::$EOL;
        }
        if (!isset($this->_arrayData['config']['disablebuttons']) or $this->_arrayData['config']['disablebuttons'] != 'true') {
            $html .= '<th class="nosorter width-action">' . 'Ação' . '</th>';
        }
        $html .= '</tr>' . self::$EOL;

        $html .= '<tr><th colspan="' . $this->_datagridColumnCount . '" class="pager form-horizontal text-left">
                            <button type="button" class="btn first"><i class="glyphicon glyphicon-step-backward"></i></button>
                            <button type="button" class="btn prev"><i class="glyphicon glyphicon-arrow-left"></i></button>
                            <span class="pagedisplay"></span> <!-- this can be any element, including an input -->
                            <button type="button" class="btn next"><i class="glyphicon glyphicon-arrow-right"></i></button>
                            <button type="button" class="btn last"><i class="glyphicon glyphicon-step-forward"></i></button>
                            <select class="pagesize input-sm" title="Select page size">
                                <option selected="selected" value="10">10</option>
                                <option value="20">20</option>
                                <option value="30">30</option>
                                <option value="40">40</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                            </select>
                            <select class="pagenum input-sm" title="Select page number"></select>
                        </th>
                    </tr>' . self::$EOL;

        $html .= '</tfoot>' . self::$EOL;

        return $html;
    }
1234472
public void setHTML (int row, int column, String text, int colSpan, String... styles)
    {
        setHTML(row, column, text);
        if (colSpan > 0) {
            getFlexCellFormatter().setColSpan(row, column, colSpan);
        }
        setStyleNames(row, column, styles);
    }
1351974
function ()
	{
		$.each( this.s.dt.aoColumns, function (i, column) {
			$(column.nTh).attr('data-column-index', i);
		} );
	}
202457
function buildSelect () {
    // list of columns to select
    var columns = this.isSelectOnlyIds ? ['id'] : this.model.columnNames
    // add columns to select list
    _.each(columns, columnName => {
        // validate column name - throw error
        columnName = this.model.columnName(columnName, true)
        // get column spec
        var spec = this.model.columns[columnName]
        // add select column sql
        this.select.push(
            this.selectColumnSql(this.model, columnName, spec, this.table)
        )
    })
}
545078
def row2table(soup, table, row):
    """"""
    tr = Tag(soup, name="tr")
    table.append(tr)
    for attr in row:
        td = Tag(soup, name="td")
        tr.append(td)
        td.append(attr)
852039
def calculate_columns(self):
        """"""

        self.cols = int(math.ceil(len(self.elements) / float(self.rows)))
653107
protected function initColumns()
    {
        foreach ($this->columns as $i => $column) {
            $definition = array_merge([
                'class'         => $this->columnClass,
                'renderer'      => $this,
                'context'       => $this->context,
            ], $column);

            $this->addButtonOptions = (array)$this->addButtonOptions;

            if (!isset($definition['attributeOptions'])) {
                $definition['attributeOptions'] = $this->attributeOptions;
            }

            if (!isset($definition['enableError'])) {
                $definition['enableError'] = $this->enableError;
            }

            $this->columns[$i] = Yii::createObject($definition);
        }
    }
102316
def _build_row(self, row, parent, align, border):
        
        tr = etree.SubElement(parent, 'tr')
        tag = 'td'
        if parent.tag == 'thead':
            tag = 'th'
        cells = self._split_row(row, border)
        # We use align here rather than cells to ensure every row
        # contains the same number of columns.
        for i, a in enumerate(align):
            c = etree.SubElement(tr, tag)
            try:
                c.text = cells[i].strip()
            except IndexError:
                c.text = ""
            if a:
                c.set('align', a)
663021
private function buildTable()
    {
        $used     = [];
        $headings = '';
        $columns  = '';
        foreach ($this->fields as $field) {
            // Check if there is no duplication for radio and checkbox.
            // Password fields are excluded from the table too.
            if (! in_array($field->title, $used)
                && $field->type != 'password'
                && $field->type != 'textarea'
                && $field->show == 1
            ) {
                $headings .= "<th>$field->label</th>\r\n";
                // Format our table column by field type
                if ($field->type == 'relationship') {
                    $columns .= '<td>{{ isset($row->' . $field->relationship_name . '->' . $field->relationship_field . ') ? $row->' . $field->relationship_name . '->' . $field->relationship_field . " : '' }}</td>\r\n";
                    $used[$field->relationship_field] = $field->relationship_field;
                } elseif ($field->type == 'photo') {
                    $columns .= '<td>@if($row->' . $field->title . ' != \'\')<img src="{{ asset(\'uploads/thumb\') . \'/\'.  $row->' . $field->title . " }}\">@endif</td>\r\n";
                    $used[$field->title] = $field->title;
                } else {
                    $columns .= '<td>{{ $row->' . $field->title . " }}</td>\r\n";
                    $used[$field->title] = $field->title;
                }
            }
        }
        $this->headings = $headings;
        $this->columns  = $columns;
    }
500494
function Column (table, header, i) {
  this._table = table, this._header = header, this._i = i
}
167723
def section(rows, columns, items, label=None):
    """"""

    # TODO: Integrate label

    sections = []

    column_class = "section-column col-sm-%i" % (12 / columns)

    for vertical in range(columns):
        column_items = []
        for horizontal in range(rows):
            try:
                item = items[horizontal][vertical]
                column_items.append(item)
            except IndexError:
                hfoslog('Field in', label, 'omitted, due to missing row/column:', vertical, horizontal,
                        lvl=warn, emitter='FORMS', tb=True, frame=2)

        column = {
            'type': 'section',
            'htmlClass': column_class,
            'items': column_items
        }
        sections.append(column)

    result = {
        'type': 'section',
        'htmlClass': 'row',
        'items': sections
    }

    return result
566592
def _transform_columns(component, inner)
      col_count = component.parent.elements.size

      small_val = component.attr('small')
      large_val = component.attr('large')

      small_size = small_val || column_count
      large_size = large_val || small_val || (column_count / col_count).to_i

      classes = _combine_classes(component, "small-#{small_size} large-#{large_size} columns")

      classes << ' first' unless component.previous_element
      classes << ' last' unless component.next_element

      subrows = component.elements.css(".row").to_a.concat(component.elements.css("row").to_a)
      expander = %{<th class="expander"></th>} if large_size.to_i == column_count && subrows.empty?

      %{<#{INTERIM_TH_TAG} class="#{classes}" #{_pass_through_attributes(component)}><table><tr><th>#{inner}</th>#{expander}</tr></table></#{INTERIM_TH_TAG}>}
    end
209948
private void writeRow(String... columns) throws IOException {
        StringBuilder html = new StringBuilder();
        html.append("<tr>");
        for(String data : columns) {
            html.append("<td>").append(data).append("</td>");
        }
        html.append("</tr>\n");
        writer.write(html.toString());
    }