diff --git a/README.md b/README.md index 7a39d3b..ee0d74e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ A Lightweight Responsive jQuery Tooltip Plugin [![Build Status](https://travis-ci.org/object505/tipso.svg?branch=master)](https://travis-ci.org/object505/tipso) [![NPM version](http://img.shields.io/npm/v/tipso.svg?style=flat)](https://www.npmjs.org/package/tipso) [![Bower version](http://img.shields.io/bower/v/tipso.svg?style=flat)](http://bower.io/search/?q=tipso) +[![Gittip](http://img.shields.io/gratipay/object505.svg?style=flat)](https://gratipay.com/object505/) >There is also a Wordpress version of this plugin. Get it [here](https://wordpress.org/plugins/tipso/) @@ -51,7 +52,7 @@ A Lightweight Responsive jQuery Tooltip Plugin | onShow | function(){} | Function to be executed after tipso is shown | | onHide | function(){} | Function to be executed after tipso is hidden | -> Additionaly you can use `data-tipso` instead of the title attribute for the tooltip content +> Additionaly you can use `data-tipso` instead of the title attribute for the tooltip content ( set `useTitle: false` ) ## API @@ -64,6 +65,13 @@ A Lightweight Responsive jQuery Tooltip Plugin // Destroy tipso tooltip $('.tipso').tipso('destroy'); + + // Add a callback before tipso is shown + $('.tipso').tipso({ + onBeforeShow: function(){ + // Your code + } + }); // Add a callback when tipso is shown $('.tipso').tipso({ @@ -79,6 +87,12 @@ A Lightweight Responsive jQuery Tooltip Plugin } }); + // Load AJAX content to tipso + $('.tipso').tipso({ + useTitle: false, + ajaxContentUrl : 'ajax.html' + }); + // Update tipso options $('.tipso').tipso('update', 'content', 'new content'); ``` @@ -91,6 +105,7 @@ Here is the link to the [demo][demo] For bug reports, questions, feature requests, or other suggestions please create an [issue][issue] on GitHub. [issue]: https://github.com/object505/tipso/issues/new + ## Author | ![twitter/BojanPetkovski](http://gravatar.com/avatar/30befed2bed6e1690a6b47cf617f7927?s=105](http://twitter.com/BojanPetkovski "Follow @BojanPetkovski on Twitter") | |---| diff --git a/bower.json b/bower.json index c3cd222..d1ef50a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "tipso", - "version": "1.0.0", + "version": "1.0.1", "description": "A Lightweight Responsive jQuery Tooltip Plugin", "main": ["src/tipso.min.js", "src/tipso.css"], "keywords": [ diff --git a/package.json b/package.json index ec82420..70c9371 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "mobile", "lightweight" ], - "version": "1.0.0", + "version": "1.0.1", "author": "Bojan Petkovski (http://object505.com/)", "licenses": [ { diff --git a/tipso.jquery.json b/tipso.jquery.json index b69ab6d..ee68bc9 100644 --- a/tipso.jquery.json +++ b/tipso.jquery.json @@ -10,7 +10,7 @@ "mobile", "lightweight" ], - "version": "1.0.0", + "version": "1.0.1", "author": { "name": "Bojan Petkovski", "url": "http://object505.com"