Generate DataTable's table html.

@param array $attributes
@param bool  $drawFooter
@param bool  $drawSearch

@return \Illuminate\Support\HtmlString
551249
public function table(array $attributes = [], $drawFooter = false, $drawSearch = false)
    {
        $this->tableAttributes = array_merge($this->getTableAttributes(), $attributes);
        $htmlAttr = $this->html->attributes($this->tableAttributes);
        $tableHtml = '<table '.$htmlAttr.'></table>';

        return new HtmlString($tableHtml);
    }
220605
public function renderHtml(Autocomplete $autocomplete, array $attributes = [])
    {
        $autocomplete->addInputAttributes($attributes);

        return $this->placeAutocompleteHelper->renderHtml($autocomplete);
    }
879495
protected function generateHtmlString(...$attributesList): HtmlString
    {
        $attributesArray = $this->buildAttributesArray(...$attributesList);
        $html = $this->buildHtmlString($attributesArray);

        return new HtmlString($html);
    }
785793
function() {
        var gl = this.context;
        gl.bindBuffer(gl.ARRAY_BUFFER, this._attributeBuffer);
        gl.bufferData(gl.ARRAY_BUFFER, this._attributeArray, gl.STATIC_DRAW);
        gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._indexBuffer);
        gl.bufferData(
            gl.ELEMENT_ARRAY_BUFFER,
            this._indexArray,
            gl.STATIC_DRAW
        );
        gl.drawElements(gl.TRIANGLES, this.index_pointer, gl.UNSIGNED_SHORT, 0);
    }
599521
private function footnoteStartHandler(array $attrs): void
    {
        $id = '';
        if (preg_match('/[0-9] (.+) @(.+)@/', $this->gedrec, $match)) {
            $id = $match[2];
        }
        $record = GedcomRecord::getInstance($id, $this->tree);
        if ($record && $record->canShow()) {
            $this->print_data_stack[] = $this->print_data;
            $this->print_data         = true;
            $style                    = '';
            if (!empty($attrs['style'])) {
                $style = $attrs['style'];
            }
            $this->footnote_element = $this->current_element;
            $this->current_element  = $this->report_root->createFootnote($style);
        } else {
            $this->print_data       = false;
            $this->process_footnote = false;
        }
    }
772164
public function getTableAttributeHtml(BaseElementModel $element, $attribute)
    {
        // Give plugins a chance to set this
        $pluginAttributeHtml = craft()->plugins->callFirst('getTagManagerTableAttributeHtml', array($element, $attribute), true);

        // Return the plugins version, if there is one
        if ($pluginAttributeHtml !== null) {
            return $pluginAttributeHtml;
        }

        // Default to the base table html
        return parent::getTableAttributeHtml($element, $attribute);
    }
587211
public function tags($baseUrl, $attributes)
    {
        $html = '';
        foreach($this->files as $file)
        {
            $file = $baseUrl . str_replace($this->publicPath, '', $file);
            $html .= $this->tag($file, $attributes);
        }

        return $html;
    }
684965
protected function renderAttr($attributes = false, $params = false)
    {
        $attrStr = '';

        if (isset($attributes['callback'])) {
            $callbackParams = [$this];

            if ($params !== false) {
                array_push($callbackParams, $params);
            }

            call_user_func_array($attributes['callback'], $callbackParams);
        }

        if (is_array($attributes)) {
            foreach ($attributes as $attr => $value) {
                if (is_string($value)) {
                    $attrStr .= ' '.$attr.'="'.$value.'"';
                }
            }
        }

        return $attrStr;
    }
220779
protected StringBuilder generateFooterHtml(int executedQueries, long serverTime) {
        return new StringBuilder().
                append("<data id=\"sniffy\" data-sql-queries=\"").
                append(executedQueries).
                append("\" data-server-time=\"").
                append(serverTime)
                .append("\"/>");
    }
1241579
function render(Axis $columns, StaticAttributesMap $tableColAttributes) {

    if ($this->rows->isEmpty() || !$columns->getCount()) {
      return '';
    }

    $container = new BuildContainer(
      $this->rows->takeSnapshot(),
      $columns);

    /** @var BuildContainerBase $container */
    $container->CellContents = $this->cellContents;
    $container->CellClasses = $this->cellClasses;
    $container->CellTagNames = $this->cellTagNames;
    $container->OpenEndCells = $this->openEndCells;
    $container->RowAttributes = clone $this->rowAttributes->staticCopy();
    $container->RowStripings = $this->rowStripings;
    $container->TableColAttributes = $tableColAttributes;
    $container->SectionColAttributes = $this->colAttributes->staticCopy();

    /** @var BuildContainer $container */
    $innerHtml = $container->InnerHtml;

    return '  ' . $this->renderTag($this->tagName, "\n" . $innerHtml . '  ') . "\n";
  }
1170852
public function css($aliasOrUrl, array $attributes = [])
    {
        $url = $this->getCssUrl($aliasOrUrl);
        if (!$this->included->isIncluded($url)) {
            $this->included->markAsIncluded($url);
            return new Tag('link', array_merge([
                'type' => 'text/css',
                'rel' => 'stylesheet',
                'href' => $url,
                'media' => 'all'
            ], $attributes));
        } else {
            return new DataView();
        }
    }
1289207
public function getAttributesHTML($attributes)
    {
        // Initialise:
        
        $markup = [];
        
        // Remove Empty Attributes:
        
        $attributes = array_filter($attributes, function ($v) {
            return ($v || $v === 0 || $v === '0');
        });
        
        // Render Remaining Attributes:
        
        foreach ($attributes as $name => $value) {
            $markup[] = sprintf('%s="%s"', $name, ($value === true) ? $name : Convert::raw2att($value));
        }
        
        // Answer Markup:
        
        return implode(' ', $markup);
    }
1035913
public static function activeSearchQueryField($model, $attribute, $htmlOptions = array())
    {
        self::addCssClass('search-query', $htmlOptions);
        return self::activeTextField($model, $attribute, $htmlOptions);
    }
79743
private function gridFooterBuild() {
        $html = '<tfoot class="table-footer">' . self::$phpEOL;
        $html .= '<tr>' . self::$phpEOL;

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

        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::$phpEOL;
        }
        if (!isset($this->arrayData['config']['disablebuttons']) or $this->arrayData['config']['disablebuttons'] != 'true') {
            $html .= '<th class="nosorter width-action">' . 'Ação' . '</th>';
        }
        $html .= '</tr>' . self::$phpEOL;

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

        return $html;
    }
322937
public function scripts($script = null, array $attributes = ['type' => 'text/javascript'])
    {
        $script = $script ?: $this->generateScripts();
        $attributes = $this->html->attributes($attributes);

        return new HtmlString("<script{$attributes}>{$script}</script>\n");
    }
301815
protected function buildHtmlString(array $attributesArray): string
    {
        $html = '';
        foreach ($attributesArray as $key => $attribute) {
            $spacer = strlen($html) ? ' ' : '';
            if ($key && is_string($key)) {
                $html .= $spacer . $key . ($attribute ? '="' . $attribute . '"' : '');
            } else {
                $html .= $spacer . $attribute;
            }
        }

        return $html;
    }
822982
public function createHtmlTableFromArray($nbColonnes=4,$styleTableau='border:1px;',$classTableau='',$cellProperty='',$tableauProperties='')
	{
	
		$htmlClassTableau = "";
		if($classTableau!='')
			$htmlClassTableau = " class='".$classTableau."' ";
	
		$html="<table style=\"".$styleTableau."\" ".$htmlClassTableau." ".$tableauProperties."><tbody>";
		
		
		$nbValues = count($this->tabValues);
		
		// calcul du nombre de cases totales :
		if($nbValues%$nbColonnes==0)
		{
			$nbLignes = $nbValues / $nbColonnes;
		}
		else
		{
			$nbLignes = intval($nbValues / $nbColonnes)+1;
		}
		
		$nbCases = $nbLignes * $nbColonnes;
		
		$ligne=0; // coordonn�es horizontales
		$colonne=0; // coordonn�es verticales
		for($i=0 ; $i<$nbCases ; $i++)
		{
			if($colonne==0)
			{
				$html.="<tr>";
			}
			
			if(isset($this->tabValues[$i]))
			{
				if(isset($this->tabStyles[$i]) && $this->tabStyles[$i]!='')
					$html.="<td ".$this->tabStyles[$i].">".$this->tabValues[$i]."</td>";
				else
					$html.="<td ".$cellProperty.">".$this->tabValues[$i]."</td>";
			}
			else
			{
				$html.="<td ".$cellProperty.">&nbsp;</td>";
			}
			
			
			if($colonne==$nbColonnes-1)
			{
				$html.="</tr>";
				$colonne=0;
				$ligne+=1;
			}
			else
			{
				$colonne+=1;
			}
		}
		
		$html=$html."</tbody></table>";
		return $html;
	}