qTip Library
Component ID
1782130
Component name
qTip Library
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
1757
Component created
Component changed
Component body
Simple module which provides a Libraries (2.x) interface for the qTip2 library.
Setup
Automatically (using drush+composer):
drush dl composer
drush dl libraries qtip_library
drush en qtip_libraryManually:
- Download
librariesandqtip_library; place them into your modules folder, e.g.sites/all/modules. - Download the qTip2 Javascript library, place it into your libraries folder, e.g.
sites/all/libraries. Make sure the directory name of the extracted library isqtip. - Enable qTip Library.
Verify that the library has been installed correctly:
drush libraries-list
Name Status Version Variants Dependencies
qtip OK 2.0.0 source, basic, basic-source -Usage Example
// MYTHEME/template.php
function MYTHEME_preprocess_page() {
$qtip = libraries_load('qtip');
if ($qtip['loaded'] !== FALSE) {
drupal_add_js(
drupal_get_path('theme', 'MYTHEME') . '/javascript/qtips.js',
array('scope' => 'footer', 'group' => JS_THEME)
);
}
}
// MYTHEME/javascript/qtips.js
jQuery(document).ready(function($) {
$('[title!=""]').qtip();
});
