\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

A PHP class representing the tooltip setting of MapMarkerDefaults.

Methods

animation

A collection of {Animation} objects, used to change default animations. A value of false will disable all animations in the widget.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipAnimation|array

Example - using \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipAnimation

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$animation = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipAnimation();
$close = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipAnimationClose();
$animation->close($close);
$tooltip->animation($animation);
?>

Example - using array

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$close = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipAnimationClose();
$tooltip->animation(array('close' => $close));
?>

autoHide

Specifies if the tooltip will be hidden when mouse leaves the target element. If set to false a close button will be shown within tooltip. If set to false, showAfter is specified and the showOn is set to "mouseenter" the Tooltip will be displayed after the given timeout even if the element is no longer hovered.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value boolean

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->autoHide(true);
?>

callout

Specifies if the tooltip callout will be displayed.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value boolean

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->callout(true);
?>

content

The text or a function which result will be shown within the tooltip. By default the tooltip will display the target element title attribute content.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value string|\Kendo\JavaScriptFunction|\Kendo\Dataviz\UI\MapMarkerDefaultsTooltipContent|array

Example - using string

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->content('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->content(new \Kendo\JavaScriptFunction('function() { }'));
?>

Example - using \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipContent

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$content = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltipContent();
$url = 'value';
$content->url($url);
$tooltip->content($content);
?>

Example - using array

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$url = 'value';
$tooltip->content(array('url' => $url));
?>

height

The height (in pixels) of the tooltip.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value float

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->height(1);
?>

iframe

Explicitly states whether content iframe should be created.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value boolean

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->iframe(true);
?>

position

The position relative to the target element, at which the tooltip will be shown. Predefined values are "bottom", "top", "left", "right", "center".

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value string

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->position('value');
?>

showAfter

Specify the delay in milliseconds before the tooltip is shown. This option is ignored if showOn is set to "click" or "focus".

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value float

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->showAfter(1);
?>

showOn

The event on which the tooltip will be shown. Predefined values are "mouseenter", "click" and "focus".

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value string

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->showOn('value');
?>

template

The template which renders the tooltip content.The fields which can be used in the template are: location - the marker location (kendo.dataviz.map.Location instance) or marker - the marker instance.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value string

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->template('value');
?>

width

The width (in pixels) of the tooltip.

Returns

\Kendo\Dataviz\UI\MapMarkerDefaultsTooltip

Parameters

$value float

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\MapMarkerDefaultsTooltip();
$tooltip->width(1);
?>
In this article
Not finding the help you need?