Renders the tooltip.

@param TooltipInterface $tooltip Tooltip.

@return array Options.
547078
protected function renderTooltip(TooltipInterface $tooltip)
    {
        $options = array(
            'enabled' => $tooltip->isEnabled(),
        );

        if (0 < count($tooltip->getStyles())) {
            $options['style'] = $tooltip->getStyles();
        }

        return $options;
    }
713870
private function getTips(Description $description)
    {
        return array_map(
            function (\stdClass $tipDescription) {
                return $this->tipFactory->create(new Description($tipDescription));
            },
            $description->getOptionalProperty('items', [])
        );
    }
1009594
function _handleAddTooltip(tooltipType) {
    let initString = getCurrentConfig();
    let tooltipInitString = tooltipConfigs[tooltipType].initString;
    initString = initString.concat(tooltipInitString);
    configEditor.setValue(prettifyInitString(initString));
    setNewChart();
}
107022
protected function renderDescription(Nette\Forms\IControl $control)
	{
		/** @noinspection PhpUndefinedMethodInspection */
		$description = $control->getOption(RendererOptions::description);
		if (is_string($description)) {
			if ($control instanceof Nette\Forms\Controls\BaseControl) {
				$description = $control->translate($description);
			}
		} elseif (!$description instanceof Html) {
			$description = '';
		}

		if (!empty($description)) {
			$el = $this->getElem(Cnf::description);
			$el->setHtml($description);

			return $el;
		} else {
			return NULL;
		}
	}
37497
function tooltips ( ) {

            // Tooltips are added with options.tooltips in original order.
            var tips = scope_Handles.map(addTooltip);

            bindEvent('update', function(values, handleNumber, unencoded) {

                if ( !tips[handleNumber] ) {
                    return;
                }

                var formattedValue = values[handleNumber];

                if ( options.tooltips[handleNumber] !== true ) {
                    formattedValue = options.tooltips[handleNumber].to(unencoded[handleNumber]);
                }

                tips[handleNumber].innerHTML = '<span>' + formattedValue + '</span>';
            });
        }
116822
protected function renderCustomTools($tools)
    {
        return $tools->map(function ($tool) {
            if ($tool instanceof Renderable) {
                return $tool->render();
            }

            if ($tool instanceof Htmlable) {
                return $tool->toHtml();
            }

            return (string) $tool;
        })->implode(' ');
    }
1179913
def render_tooltip(self, tooltip, obj):
        
        if self.tooltip_attr:
            val = getattr(obj, self.tooltip_attr)
        elif self.tooltip_value:
            val = self.tooltip_value
        else:
            return False
        setter = getattr(tooltip, TOOLTIP_SETTERS.get(self.tooltip_type))
        if self.tooltip_type in TOOLTIP_SIZED_TYPES:
            setter(val, self.tooltip_image_size)
        else:
            setter(val)
        return True
1064960
private function _renderTitle() {
		$title = $this->_getCaption($this->_chart->getTitle());
		if (!is_null($title)) {
			$this->_graph->title->Set($title);
		}
	}
681415
public function render()
    {
        $tools = Html::div()->addClass( 'tools' );

        foreach( $this->blocks() as $name => $content )
        {
            $tools->append(
                Html::div( $content->toArray() )->addClass( $name )
            );
        }

        return $tools;
    }
1068643
function render(event) {
    var tooltip = document.createElement('div')
      , element = $(event.element)
      , pos = element.get('data-placement')
      , offset = this.offset(event.element)
      , placement;

    //
    // Create the tooltip with the proper content and insert.
    //
    tooltip.id = "tooltip";
    tooltip.innerHTML = element.get('data-content');
    tooltip.className = ['animated', 'tooltip', 'fadeIn', pos].concat(
      element.get('data-color')
    ).filter(Boolean).join(' ');

    document.body.appendChild(tooltip);

    //
    // Update the position of the tooltip.
    //
    placement = this.placement(pos, tooltip, event.element);
    tooltip.setAttribute('style', [
      'left:' + (offset.left + placement.left) + 'px',
      'top:' + (offset.top + placement.top) + 'px'
    ].join(';'));
  }
522323
protected function _setTooltipTitle($tooltip, array $options = [])
    {
        if ($tooltip === true && !Arr::key('title', $options)) {
            $options['title'] = strip_tags($options['label']);
        }

        if (is_string($tooltip)) {
            $options['title'] = $tooltip;
        }

        return $options;
    }
1082025
public function render()
    {
        if ($this->options['enableListButton']) {
            $this->add($this->listButton());
        }

        if ($this->options['enableBackButton']) {
            $this->add($this->backButton());
        }

        return $this->tools->map(function ($tool) {
            if ($tool instanceof Renderable) {
                return $tool->render();
            }

            if ($tool instanceof Htmlable) {
                return $tool->toHtml();
            }

            return (string) $tool;
        })->implode(' ');
    }
323495
public function displayValue( $value )
    {
        if ( empty( $value ) )
        {
            return '';
        }

        return $this->view
                    ->htmlTag( 'img', null, array(
                        'data-js-type' => 'js.ui.toolTip',
                        'src'   => $this->view
                                        ->thumbnail( $value,
                                                     $this->getOptions() ),
                        'title' => $this->view
                                        ->htmlTag( 'img', null, array(
                                            'src'   => $value,
                                            'style' => 'max-width: 300px;'
                                                    . ' max-height: 500px;'
                                                    . ' margin-bottom: -3px;',
                                        ) ),
                    ) );
    }
516321
function (element, options) {
			this.type = null;
			this.options = null;
			this.enabled = null;
			this.timeout = null;
			this.hoverState = null;
			this.$element = null;
			this.inState = null;

			this.init("tooltip", element, options);
		}
1363059
public function tooltip(String $placement, $content = NULL, Bool $html = NULL)
    {
        if( is_string($content) )
        {
            return $this->title($content)->dataHtml($html === true ? 'true' : $html)->dataToggle('tooltip')->dataPlacement($placement);
        }
        
        return $this->usePropertyOptions($placement, $content, __FUNCTION__);
    }
435613
protected function _prepareTooltip(Helper $helper, array $options, $tooltip)
    {
        $_options = [
            'data-position' => 'top'
        ];

        if (Arr::key('tooltipPos', $options)) {
            $_options['data-position'] = (string) $options['tooltipPos'];
            unset($options['tooltipPos']);
        }

        $options = $this->_tooltipTitle($options, $tooltip);
        $options = $this->_dataTooltip($options, $tooltip);
        $options = $helper->addClass($options, 'hasTooltip');

        return Hash::merge($_options, $options);
    }
1346288
public function renderPair(Nette\Forms\IControl $control)
	{
		$pairHtml = $this->configElem(Cnf::pair);
		/** @noinspection PhpUndefinedMethodInspection */
		/** @noinspection PhpUndefinedFieldInspection */
		$pairHtml->id = $control->getOption(RendererOptions::id);

		$labelHtml = $this->renderLabel($control);
		if (!empty($labelHtml)) {
			$pairHtml->addHtml($labelHtml);
		}

		$nonLabel = $this->getElem(Cnf::nonLabel);

		//region non-label parts
		$controlHtml = $this->renderControl($control);
		$feedbackHtml = $this->renderFeedback($control);
		$descriptionHtml = $this->renderDescription($control);

		if (!empty($controlHtml)) {
			$nonLabel->addHtml($controlHtml);
		}
		if (!empty($feedbackHtml)) {
			$nonLabel->addHtml($feedbackHtml);
		}
		if (!empty($descriptionHtml)) {
			$nonLabel->addHtml($descriptionHtml);
		}
		//endregion

		if (!empty($nonLabel)) {
			$pairHtml->addHtml($nonLabel);
		}

		return $pairHtml->render(0);
	}