@@ -6,6 +6,7 @@ A Lightweight Responsive jQuery Tooltip Plugin
6
6
[ ![ Build Status] ( https://travis-ci.org/object505/tipso.svg?branch=master )] ( https://travis-ci.org/object505/tipso )
7
7
[ ![ NPM version] ( http://img.shields.io/npm/v/tipso.svg?style=flat )] ( https://www.npmjs.org/package/tipso )
8
8
[ ![ Bower version] ( http://img.shields.io/bower/v/tipso.svg?style=flat )] ( http://bower.io/search/?q=tipso )
9
+ [ ![ Gittip] ( http://img.shields.io/gratipay/object505.svg?style=flat )] ( https://gratipay.com/object505/ )
9
10
10
11
> There is also a Wordpress version of this plugin. Get it [ here] ( https://wordpress.org/plugins/tipso/ )
11
12
@@ -51,7 +52,7 @@ A Lightweight Responsive jQuery Tooltip Plugin
51
52
| onShow | function(){} | Function to be executed after tipso is shown |
52
53
| onHide | function(){} | Function to be executed after tipso is hidden |
53
54
54
- > Additionaly you can use ` data-tipso ` instead of the title attribute for the tooltip content
55
+ > Additionaly you can use ` data-tipso ` instead of the title attribute for the tooltip content ( set ` useTitle: false ` )
55
56
56
57
## API
57
58
@@ -64,6 +65,13 @@ A Lightweight Responsive jQuery Tooltip Plugin
64
65
65
66
// Destroy tipso tooltip
66
67
$ (' .tipso' ).tipso (' destroy' );
68
+
69
+ // Add a callback before tipso is shown
70
+ $ (' .tipso' ).tipso ({
71
+ onBeforeShow : function (){
72
+ // Your code
73
+ }
74
+ });
67
75
68
76
// Add a callback when tipso is shown
69
77
$ (' .tipso' ).tipso ({
@@ -79,6 +87,12 @@ A Lightweight Responsive jQuery Tooltip Plugin
79
87
}
80
88
});
81
89
90
+ // Load AJAX content to tipso
91
+ $ (' .tipso' ).tipso ({
92
+ useTitle: false ,
93
+ ajaxContentUrl : ' ajax.html'
94
+ });
95
+
82
96
// Update tipso options
83
97
$ (' .tipso' ).tipso (' update' , ' content' , ' new content' );
84
98
```
@@ -91,6 +105,7 @@ Here is the link to the [demo][demo]
91
105
For bug reports, questions, feature requests, or other suggestions please create an [ issue] [ issue ] on GitHub.
92
106
[ issue ] : https://github.com/object505/tipso/issues/new
93
107
108
+
94
109
## Author
95
110
| ![ twitter/BojanPetkovski] (http://gravatar.com/avatar/30befed2bed6e1690a6b47cf617f7927?s=105 ] ( http://twitter.com/BojanPetkovski " Follow @BojanPetkovski on Twitter ") |
96
111
| ---|
0 commit comments