Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Nov 15, 2012
1 parent 988d4ba commit c7a1bf0
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions docs/content.md
Expand Up @@ -153,10 +153,10 @@ $('.selector').qtip({
jQuery([ ]), "String", true, false *(Default: false)*

### Overview
Text/HTML which will appear inside the title's button element (e.g. close link) located to the right of the title content. The button will close the tooltip when clicked.
Text/HTML which will appear inside the button element (i.e. close button or link) located by default at the top right of the tooltip or titlebar (if enabled). The button will close the tooltip when clicked.

If it is set to *true* the default styled icon will be used. If a jQuery element is provided it will be used as the button and appended to the titlebar element. Finally, if a
string is provided it will be used as the buttons innerText and title/aria-title attributes.
If it is set to *true* the default styled icon will be used. If a jQuery element is provided it will be used as the button and appended to the tooltip, or titlebar element
(if enabled). Finally, if a string is provided it will be used as the buttons innerText and title/aria-title attributes.

### Examples
Create another "About me" tooltip which opens on click and only hides when the title button is clicked
Expand All @@ -175,9 +175,24 @@ $('.selector').qtip({
}
});
```
You can also have tooltips with a button but no title:

```js
$('.selector').qtip({
content: {
text: 'Quite Fancybox-y if you ask me...',
title: {
button: true
}
},
hide: {
event: false
}
});
```

### Notes
* Button only appears if a title is present e.g. [content.title.text](#titletext) is defined and valid.
* Button will be appended to the titlebar element if [content.title.text](#titletext) is set, otherwise to the tooltip element.
* If no valid content is provided, the button will not be created.


Expand Down

0 comments on commit c7a1bf0

Please sign in to comment.