https://github.com/kanety/jquery-simple-popup
  
  
     
    https://github.com/kanety/jquery-simple-popup
  
        Last synced: 8 months ago 
        JSON representation
    
- Host: GitHub
- URL: https://github.com/kanety/jquery-simple-popup
- Owner: kanety
- License: mit
- Created: 2019-02-17T08:46:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-23T14:28:29.000Z (over 6 years ago)
- Last Synced: 2025-01-08T20:53:03.339Z (10 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # jquery-simple-popup
A jquery plugin for simple popup contents.
## Dependencies
* jquery
## Installation
Install from npm:
    $ npm install @kanety/jquery-simple-popup --save
## Usage
Build html as follows:
```html
Button
  content
  content
```
Then run:
```javascript
$('#basic').simplePopup('#basic_content');
```
Change popup position:
```javascript
$('#basic').simplePopup('#basic_content', {
  position: 'right-start'
});
```
Following positions are available:
* top-start
* top-end
* bottom-start (Default)
* bottom-end
* left-start
* left-end
* right-start
* right-end
### Context menu
```html
Text
  content
  content
```
```javascript
$('#context').simplePopup('#context_content', {
  trigger: 'contextmenu'
});
```
## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).