Renders a colorpicker field.
@return string the rendered content
@author antonio ramirez <antonio@clevertech.biz>
344838
protected function colorpickerField()
	{
		$format = 'hex';
		if (isset($this->htmlOptions['format'])) {
			$format = $this->htmlOptions['format'];
			unset($this->htmlOptions['format']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbColorPicker',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'format' => $format,
				'events' => isset($events) ? $events : array(),
				'htmlOptions' => $this->htmlOptions,
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}
1353405
public function render()
    {
        if (!$this->enableDelete) {
            $this->actions->shift();
        }

        if ($this->actions->isEmpty()) {
            return '';
        }

        $this->setUpScripts();

        $data = [
            'actions'                 => $this->actions,
            'selectAllName'           => $this->grid->getSelectAllName(),
            'isHoldSelectAllCheckbox' => $this->isHoldSelectAllCheckbox,
        ];

        return view('admin::grid.batch-actions', $data)->render();
    }
944650
private function render()
    {
        if (empty($this->element)) {
            $this->textInput();
        }
        
        if (!isset($this->parts['{label}'])) {
            $this->label($this->label);
        }
        
        if (!isset($this->parts['{initValue}'])) {
            $this->initValue(null);
        }
    
        return str_replace([
            '{label}', '{initValue}', '{model}',
        ], [
            $this->parts['{label}'],
            $this->parts['{initValue}'],
            $this->getNgModel(),
        ], $this->element);
    }
929378
public function render()
	{
		switch ($this->getContext()) {
			case BaseField::CONTEXT_LIST:
				$values = [];
				foreach ($this->getValue() as $item) {
					$values[] = $item->{$this->getDisplayField()};
				}

				return implode(', ', $values);

				break;
			case BaseField::CONTEXT_FORM:

				$baseModel  = $this->getAdmin()->getModel();
				$baseModel  = new $baseModel;
				$primaryKey = $baseModel->getKeyName();

				$relatedModel = $baseModel->{$this->getName()}()->getRelated();
				$relatedModel = get_class($relatedModel);

				$items = [];
				foreach ($relatedModel::all() as $item) {
					$items[$item->{$primaryKey}] = $item->{$this->getDisplayField()};
				}

				$id = $this->getAdmin()->getFormBuilder()->getIdentifier();

				$values = [];
				foreach ($relatedModel::where(Str::singular($baseModel->getTable()) . '_id', $id)->get() as $item) {
					$values[] = (string) $item->{$primaryKey};
				}

				return View::make('krafthaus/bauhaus::models.fields._has_many')
					->with('field',  $this)
					->with('items',  $items)
					->with('values', $values);

				break;
		}
	}
210643
public function render()
    {
        return $this->renderName()
        . $this->renderSource()
        . $this->renderMedium()
        . $this->renderKeyword()
        . $this->renderContent()
        . $this->renderId();
    }
151001
public function renderForm()
    {
        $html = $this->form_open();
        $html .= $this->renderSubForm();
        $html .= $this->form_close();

        return $html;
    }
488115
public function render()
    {
        $render = '';
        try {
            $render = $this->getRenderer()->render('form', $this);
        } catch(\Exception $e){
            dd($e->getMessage());//@todo find a good way to warn the developper
        }

        return $render;
    }
539366
function render() {

		$this->autocompletefield();
		$this->fieldtemplate !== null or $this->fieldtemplate = ':field';

		if ($this->fieldconfigurer_callback !== null) {
			call_user_func($this->fieldconfigurer_callback, $this);
		}

		return strtr($this->fieldtemplate, $this->fieldfillers());
	}
507110
public function render()
    {
        Merchant::script($this->script());

        $options = $this->getOptions()->map(function ($option) {
            $selected = ($option == $this->perPage) ? 'selected' : '';
            $url = app('request')->fullUrlWithQuery([$this->perPageName => $option]);

            return "<option value=\"$url\" $selected>$option</option>";
        })->implode("\r\n");

        $show = trans('merchant.show');
        $entries = trans('merchant.entries');

        return <<<EOT

<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">

        <small>$show</small>&nbsp;
        <select class="input-sm grid-per-pager" name="per-page">
            $options
        </select>
        &nbsp;<small>$entries</small>
    </label>

EOT;
    }
368093
public function render()
    {
        Admin::script($this->script());

        $options = $this->getOptions()->map(function ($option) {
            $selected = ($option == $this->perPage) ? 'selected' : '';
            $url = app('request')->fullUrlWithQuery([$this->perPageName => $option]);

            return "<option value=\"$url\" $selected>$option</option>";
        })->implode("\r\n");

        $trans = [
            'show'    => trans('admin.show'),
            'entries' => trans('admin.entries'),
        ];

        return <<<EOT

<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">

        <small>{$trans['show']}</small>&nbsp;
        <select class="input-sm {$this->grid->getPerPageName()}" name="per-page">
            $options
        </select>
        &nbsp;<small>{$trans['entries']}</small>
    </label>

EOT;
    }
1235205
private function _render() {return $this->e()->getNoDisplay() ? '' : (
		'hidden' === $this->e()->getType()
		? $this->elementHtml()
		: df_tag('div', ['class' => $this->outerCssClasses()], $this->inner())
	);}
1294020
public function render()
    {
        if ($this->help instanceof Group\Help) {
            foreach ($this->childNodes as $childNode) {
                if ($childNode instanceof Elements\Input or
                    $childNode instanceof Elements\Checkbox or
                    $childNode instanceof Elements\Select or
                    $childNode instanceof Elements\Textarea
                ) {
                    if (false !== ($attributeId = $childNode->attributes->getAttributeId())) {
                        $this->help->attributes->setAttributeId('help-' . $attributeId);
                        $childNode->attributes->addAttribute('aria-describedby', 'help-' . $attributeId);
                    }
                }
            }
        }

        return parent::render();
    }
349743
protected function renderEditor()
    {
        $html = '';

        // Will store the name
        $html .= $this->createHidden('name', $this->name);

        // Will store the crop coordinates
        $html .= $this->createHidden('crop_box',
            $this->image()->getAttributeValue('crop_box'));

        // Begin the image upload section
        $html .= '
			<div class="image-holder">
			<div class="toolbar input-group">
			<div class="btn-group btn-group-sm">
			<div class="crop btn js-tooltip active" title="' . __('decoy::form.image.crop_tooltip') . '">
			<div class="glyphicon glyphicon-scissors"></div></div>';

        // Will add the focal point ui
        if ($this->add_focal_point) {
            $html .= '<div class="focal btn js-tooltip" title="' . __('decoy::form.image.focal_tooltip') . '">
				<div class="glyphicon glyphicon-screenshot"></div></div>';

            // Will store the focal point
            $html .= $this->createHidden('focal_point',
                $this->image()->getAttributeValue('focal_point'));
        }

        // Will close out the button group
        $html .= '</div>';

        // Add the title input
        $html .= Former::text($this->inputName('title'))
            ->class('title js-tooltip')
            ->placeholder(__('decoy::form.image.title_placeholder'))
            ->title(__('decoy::form.image.title_help'))
            ->render();

        // Add delete button
        $html .= '<div class="delete btn-sm js-tooltip">
				<div class="glyphicon glyphicon-trash"></div>
			</div>';

        // Close out all divs and add image holder.  Make the old image no wider
        // than the max available width of forms (1050)
        if ($src = Former::getValue($this->inputName('file'))) {
            $src = Croppa::url($src, 1050);
        }

        $html .= sprintf('</div>
			<div class="preview"><img class="source" src="%s"></div>
			</div>', $src);

        return $html;
    }
1312406
public static function colorpicker()
	{
		if (isset(self::$loaded[__METHOD__]))
		{
			return;
		}

		self::framework(true);

		Asset::stylesheet('assets/jquery.colpick.css', array('media' => 'all'), true);
		Asset::script('assets/jquery.colpick.js', false, true);

		App::get('document')
			->addScriptDeclaration(
			"jQuery(document).ready(function($){
				$('.input-colorpicker').colpick({
					layout:'hex',
					colorScheme:'dark',
					onChange:function(hsb, hex, rgb, el, bySetColor) {
						//$(el).css('border-color','#' + hex);
						// Fill the text box just if the color was set using the picker, and not the colpickSetColor function.
						if (!bySetColor) $(el).val('#' + hex);
					}
				}).keyup(function(){
					$(this).colpickSetColor(this.value);
				});
			});
		");

		self::$loaded[__METHOD__] = true;
	}
869989
public function render()
    {
        // transform selected values into the format used by TCEforms
        $selectedValues = $this->selectedValues;
        $tablesToIndex = $this->getIndexQueueConfigurationTableMap();

        $formField = $this->renderSelectCheckbox($this->buildSelectorItems($tablesToIndex), $selectedValues);

        // need to wrap the field in a TCEforms table to make the CSS apply
        $form[] = '<div class="typo3-TCEforms tx_solr-TCEforms">';
        $form[] = $formField;
        $form[] = '</div>';

        return implode(LF, $form);
    }
1347515
protected function render(): string
    {
        switch ($this->mode) {
            case 'button':
                $html = '<button class="btn' . $this->classes() . '" type="submit"' .
                    (($this->disabled === true) ? ' disabled' : null) .
                    '>' . $this->label . '</button>';
                break;

            case 'input':
                $html = '<input class="btn' . $this->classes() . '" type="' .
                    $this->input_type . '" value="' .
                    $this->label . '" ' .
                    (($this->disabled === true) ? ' disabled ' : null) . '/>';
                break;

            default:
                $html = '<a href="' . (($this->uri !== null) ? $this->uri : '#') .
                    '" class="btn' . $this->classes() .
                    (($this->disabled === true) ? ' disabled' : null) .
                    '" role="button">' . $this->label . '</a>';
                break;
        }

        return $html;
    }
1371125
public function render()
    {
        if (!$this->grid->showPagination()) {
            return '';
        }

        return $this->paginationRanger().
            $this->paginationLinks().
            $this->perPageSelector();
    }