From 5987a5ff7aadc72caba53795a639e031b65f0939 Mon Sep 17 00:00:00 2001 From: object505 Date: Sat, 9 May 2015 20:18:42 +0200 Subject: [PATCH] Update v1.0.5 --- README.md | 38 ++++---- bower.json | 2 +- demo/index.html | 35 ++++++- package.json | 2 +- src/tipso.js | 244 +++++++++++++++++++++++++++++----------------- src/tipso.min.js | 4 +- tipso.jquery.json | 2 +- 7 files changed, 211 insertions(+), 116 deletions(-) diff --git a/README.md b/README.md index 2483934..668d1a5 100644 --- a/README.md +++ b/README.md @@ -40,24 +40,26 @@ To use css3 animation effects please include [Animate.css](http://daneden.github ##Usage -| Name | Default | Description | -|----------------|--------------|-----------------------------------------------------------------------------------------------------| -| speed | 400 | integer - Duration of the fade effect in ms | -| background | '#55b555' | Background color of the tooltip, it can be hex, rgb, rgba, color name | -| color | '#ffffff' | Text color of the tooltip, it can be hex, rgb, rgba, color name | -| position | 'top' | Initial position of the tooltip, available positions 'top', 'bottom', 'left', 'right' | -| width | 200 | Width of the tooltip in px | -| delay | 200 | Delay before showing the tooltip in ms | -| animationIn | '' | CSS3 animation effect to show the tooltip using [Animate.css](http://daneden.github.io/animate.css) | -| animationOut | '' | CSS3 animation effect to hide the tooltip using [Animate.css](http://daneden.github.io/animate.css) | -| offsetX | 0 | Offset value of the tooltip on X axis | -| offsetY | 0 | Offset value of the tooltip on Y axis | -| content | null | The content of the tooltip, can be text, html or whatever you want | -| ajaxContentUrl | null | Url for Ajax content | -| useTitle | true | To use the default title attribute as content (true,false) | -| onBeforeShow | function(){} | Function to be executed before tipso is shown | -| onShow | function(){} | Function to be executed after tipso is shown | -| onHide | function(){} | Function to be executed after tipso is hidden | +| Name | Default | Description | +|----------------|--------------|------------------------------------------------------------------------------------------------------------------------------------| +| speed | 400 | integer - Duration of the fade effect in ms | +| background | '#55b555' | Background color of the tooltip, it can be hex, rgb, rgba, color name | +| color | '#ffffff' | Text color of the tooltip, it can be hex, rgb, rgba, color name | +| position | 'top' | Initial position of the tooltip, available positions 'top', 'bottom', 'left', 'right' | +| width | 200 | Width of the tooltip in px or % (for % add the value in quotes ex.'50%') | +| maxWidth | '' | max-width of the tooltip in px or % (for % add the value in quotes ex.'50%'). For usage you need to set width to '', false or null | +| delay | 200 | Delay before showing the tooltip in ms | +| animationIn | '' | CSS3 animation effect to show the tooltip using [Animate.css](http://daneden.github.io/animate.css) | +| animationOut | '' | CSS3 animation effect to hide the tooltip using [Animate.css](http://daneden.github.io/animate.css) | +| offsetX | 0 | Offset value of the tooltip on X axis | +| offsetY | 0 | Offset value of the tooltip on Y axis | +| tooltipHover | false | Abillity to interact with the tooltip content | +| content | null | The content of the tooltip, can be text, html or whatever you want | +| ajaxContentUrl | null | Url for Ajax content | +| useTitle | true | To use the default title attribute as content (true,false) | +| onBeforeShow | function(){} | Function to be executed before tipso is shown | +| 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 ( set `useTitle: false` ) diff --git a/bower.json b/bower.json index ba87a36..56b25b0 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "tipso", - "version": "1.0.4", + "version": "1.0.5", "description": "A Lightweight Responsive jQuery Tooltip Plugin", "main": ["src/tipso.min.js", "src/tipso.css"], "keywords": [ diff --git a/demo/index.html b/demo/index.html index 5d7b312..263673b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -10,7 +10,7 @@ - +