Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanety/jquery-simple-popup


https://github.com/kanety/jquery-simple-popup

Last synced: 8 days ago
JSON representation

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).