https://github.com/saada/bootstrap-popover-generator
Generates a customizable popover for you!
https://github.com/saada/bootstrap-popover-generator
Last synced: 8 months ago
JSON representation
Generates a customizable popover for you!
- Host: GitHub
- URL: https://github.com/saada/bootstrap-popover-generator
- Owner: saada
- Created: 2013-01-28T01:41:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-14T22:14:16.000Z (about 13 years ago)
- Last Synced: 2023-03-23T22:21:19.648Z (about 3 years ago)
- Language: CoffeeScript
- Size: 109 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bootstrap Popover Generator
===========================
Generates a customizable popover for you!
##Features:
1) One popover at a time
2) Show on click
3) Hide on ESC key or click away from button
##Requirements:
1) jQuery
2) Bootstrap with Popover module
## showPopover(1,2,3,4):
Parameter 1: The jQuery selection of parent of triggering object like a button or other).
Parameter 2: Title of the popover.
Parameter 3: Html content of the popover.
Parameter 4: Direction of popover (top, bottom, right, or left).
The function attaches the popover function to all html tags with a `rel="popover"` under the parent passed!
# Sample code usage
showPopover($('.parentDiv'), 'My Popover Title', '
My Popover Content
', 'right');
## Copyright and license
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.