Actions

API17

Difference between revisions of "JHtml::tooltip"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JHtml::tooltip|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JHtml::tooltip|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JHtml::tooltip ($tooltip, $title= '', $image= 'tooltip.png', $text= '', $href= '', $alt= 'Tooltip', $class='hasTip')
+
public static function tooltip (
 +
        $tooltip
 +
        $title= ''
 +
        $image= 'tooltip.png'
 +
        $text= ''
 +
        $href= ''
 +
        $alt= 'Tooltip'
 +
        $class='hasTip'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 49: Line 54:
 
|string
 
|string
 
|'Tooltip'
 
|'Tooltip'
|The alt attribute for img tag  
+
|The alt attribute for img tag
 
|-
 
|-
 
|$class
 
|$class
Line 57: Line 62:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string
string
+
* '''Defined''' on line 633 of libraries/joomla/html/html.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/html/html.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JHtml::tooltip source code''' on [[jplatform:html/html.php#cl-625|BitBucket]]
 +
* {{JVer|11.1}} Class [[JHtml/11.1|JHtml]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Html/11.1|Html]]
 +
* [[JHtml::tooltip|Other versions of JHtml::tooltip]]
 +
{{SeeAlso:JHtml::tooltip}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JHtml::tooltip|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JHtml::tooltip|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JHtml/11.1|JHtml]]
+
===User contributed notes===
* [[JHtml::tooltip|Other versions of this method]]
+
{{SeeAlso:JHtml::tooltip}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 77: Line 82:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JHtml]][[Category:JHtml::tooltip]]</noinclude>
 
<noinclude>[[Category:JHtml]][[Category:JHtml::tooltip]]</noinclude>

Revision as of 21:05, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JHtml::tooltip

Description

Creates a tooltip with an image as button.

Description:JHtml::tooltip [Edit Descripton]

public static function tooltip (
        $tooltip
        $title= ''
        $image= 'tooltip.png'
        $text= ''
        $href= ''
        $alt= 'Tooltip'
        $class='hasTip'
)
Parameter Type Default Description
$tooltip string The tip string
$title array The title of the tooltip or an associative array with keys contained in {'title','image','text','href','alt'} and values corresponding to parameters of the same name.
$image string 'tooltip.png' The image for the tip, if no text is provided
$text string The text for the tip
$href string An URL that will be used to create the link
$alt string 'Tooltip' The alt attribute for img tag
$class 'hasTip'
  • Returns string
  • Defined on line 633 of libraries/joomla/html/html.php
  • Since Joomla 11.1

See also

SeeAlso:JHtml::tooltip [Edit See Also]

User contributed notes

<CodeExamplesForm />