twitter/bootstrap — Issue #857: Twipsy - new features
Author: pokonski
Created: 2011-12-27 17:57:46+00:00
State: open

Hello

Recently I was thinking about introducing additional features for Twipsy (and Popovers).

1. Adding `data-placement` attribute for elements with twipsies, so placement can be tweaked on per-element basis.
Example:

```javascript
$('.twipsy-demo.well').twipsy({
selector: "a[rel=twipsy]",
placement: 'top'
})
```

but HTML:

```html
have a
```
will result in twipsy placed on the left.

2. More placements like `'top left'`, `'bottom right'`, `'right bottom'` etc, which I initially created for original Tipsy, but that repo isn't maintained anymore. This would let us position the twipsy on the left of our element but also vertically align the arrow. This is how it looked for Tipsy when I made a pull request: http://okonski.org/tipsy-test/