定制 hypejunction/elgg_tooltip 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hypejunction/elgg_tooltip

最新稳定版本:2.0.4

Composer 安装命令:

composer require hypejunction/elgg_tooltip

包简介

Tooltip for Elgg

README 文档

README

Elgg 2.0

Tooltip component for Elgg

Features

Tooltip

Usage

To add a tooltip to a string or an html element, use components/tooltip view:

$tooltip = elgg_view('components/tooltip', array(
	'text' => elgg_view('output/img', array(
		'src' => '/some/image.jpg',
	)),
	'content' => elgg_view_entity($entity, array(
		'full_view' => false,
	)),
));

Alternatively, you can just add .elgg-tooltip class and a title="Some text" attribute to any html element:

echo elgg_view('output/url', array(
	'text' => 'Click me',
	'href' => '/take/me/away',
	'class' => 'elgg-tooltip',
	'title' => 'This will show in a tooltip',
));

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-09-30