本文整理汇总了PHP中JHtmlBootstrap::tooltip方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlBootstrap::tooltip方法的具体用法?PHP JHtmlBootstrap::tooltip怎么用?PHP JHtmlBootstrap::tooltip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlBootstrap
的用法示例。
在下文中一共展示了JHtmlBootstrap::tooltip方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testTooltip
/**
* Tests the tooltip method.
*
* @return void
*
* @since 3.6.0
*/
public function testTooltip()
{
// Initialise the tooltip script
JHtmlBootstrap::tooltip();
// Get the document instance
$document = JFactory::getDocument();
$this->assertArrayHasKey('/media/jui/js/bootstrap.min.js', $document->_scripts, 'Verify that the alert method initialises Bootstrap as well');
$this->assertEquals($document->_script['text/javascript'], 'jQuery(function($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });', 'Verify that the tooltip script is initialised');
}
示例2: defined
<?php
/**
* Part of Component {{extension.name.cap}} files.
*
* @copyright Copyright (C) 2016 {ORGANIZATION}. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
// No direct access
defined('_JEXEC') or die;
JHtmlBootstrap::tooltip();
JHtmlFormbehavior::chosen('select');
JHtmlBehavior::formvalidator();
/**
* Prepare data for this template.
*
* @var $this \Windwalker\View\Engine\PhpEngine
* @var $container \Windwalker\DI\Container
* @var $data \Windwalker\Data\Data
* @var $item \stdClass
*/
$container = $this->getContainer();
$form = $data->form;
$item = $data->item;
// Setting tabset
$tabs = array('tab_basic');
?>
<!-- Validate Script -->
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
示例3: array
if ($searchButton) {
?>
<label for="filter_search" class="element-invisible">
<?php
echo JText::_('JSEARCH_FILTER');
?>
</label>
<div class="btn-wrapper input-append">
<?php
echo $filters['filter_search']->input;
?>
<?php
if ($filters['filter_search']->description) {
?>
<?php
JHtmlBootstrap::tooltip('#filter_search', array('title' => JText::_($filters['filter_search']->description)));
?>
<?php
}
?>
<button type="submit" class="btn hasTooltip" title="<?php
echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT');
?>
">
<span class="icon-search"></span>
</button>
</div>
<?php
if ($filterButton) {
?>
<div class="btn-wrapper hidden-phone">