All Projects → oncebot → Popbox.js

oncebot / Popbox.js

Licence: mit
A tiny and simple stackable modal plugin for web apps

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Popbox.js

Jbox
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.
Stars: ✭ 1,251 (+324.07%)
Mutual labels:  modal, popup, popup-window
Jalert
jQuery alert/modal/lightbox plugin
Stars: ✭ 73 (-75.25%)
Mutual labels:  modal, popup, popup-window
React New Window
🔲 Pop new windows in React, using `window.open`.
Stars: ✭ 281 (-4.75%)
Mutual labels:  popup, popup-window
react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast 🚀
Stars: ✭ 604 (+104.75%)
Mutual labels:  modal, popup
ToolTipPopupWordTV
ToolTipopupWordTV is an Open Source Android library that allows developers to easily open a popup with details by select a word from a textview.
Stars: ✭ 41 (-86.1%)
Mutual labels:  popup-window, popup
Wpopup
一个简单使用并且高度定制的Popupwindow。超简单实现朋友圈点赞效果,并且只用一个WPopup!完全不用担心复用问题!点击切换动画效果等!
Stars: ✭ 269 (-8.81%)
Mutual labels:  popup, popup-window
LSDialogViewController
Custom Dialog for iOS written in Swift
Stars: ✭ 74 (-74.92%)
Mutual labels:  modal, popup
WechatPopupWindow
高仿微信聊天界面长按弹框样式
Stars: ✭ 71 (-75.93%)
Mutual labels:  popup-window, popup
Django Bootstrap Modal Forms
A Django plugin for creating AJAX driven forms in Bootstrap modal.
Stars: ✭ 244 (-17.29%)
Mutual labels:  modal, popup
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-93.56%)
Mutual labels:  modal, popup
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-95.25%)
Mutual labels:  modal, popup
plain-modal
The simple library for customizable modal window.
Stars: ✭ 21 (-92.88%)
Mutual labels:  modal, popup
jpopup
Simple lightweight (<2kB) javascript popup modal plugin
Stars: ✭ 27 (-90.85%)
Mutual labels:  modal, popup
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (-46.44%)
Mutual labels:  modal, popup
vue-modal
Reusable Modal component, supports own custom HTML, text and classes.
Stars: ✭ 29 (-90.17%)
Mutual labels:  modal, popup
Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (-16.27%)
Mutual labels:  modal, popup
vue-modal
A customizable, stackable, and lightweight modal component for Vue.
Stars: ✭ 96 (-67.46%)
Mutual labels:  modal, popup
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-89.15%)
Mutual labels:  popup-window, popup
Pmalertcontroller
PMAlertController is a great and customizable alert that can substitute UIAlertController
Stars: ✭ 2,397 (+712.54%)
Mutual labels:  modal, popup
React Native Simple Dialogs
⚛ Cross-platform React Native dialogs based on the Modal component
Stars: ✭ 218 (-26.1%)
Mutual labels:  modal, popup

Popbox.js

Popbox.js is a tiny javascript plugin for creating stackable modals. It is fully customizable and dependency free.

Demo

Popbox. animated

Installation

  1. Add the popbox.css file to the head of your html.
  2. Add the popbox.js file to the head of your html or right before the closing body tag.
  3. Add this code after the popbox.js script tag to initialize the plugin.
<script type="text/javascript">
  var popbox = new Popbox({
        blur:true,
        overlay:true,
      });
</script>
	

Example HTML

 <div data-popbox-id="mypopbox1" class="popbox">
   <div class="popbox_container">
    Popbox content 1
    <button data-popbox-close="mypopbox1">Close</button>
   </div>
 </div>

 <div data-popbox-id="mypopbox2" class="popbox">
   <div class="popbox_container">
    Popbox content 2
   </div>
    <button data-popbox-close="mypopbox2">Close</button>
 </div>

 <div class="popbox_main_content">
    Main content of the page

    <button data-popbox-target="mypopbox1">
    Open mypopbox 1
    </button>

    <button data-popbox-target="mypopbox2">
    Open mypopbox 2
    </button>
&nbsp </div>

Options

blur : set it to true for blur effect on the main content (Default:false)

API

Open and close popbox with api

<script type="text/javascript">
  var popbox =   new Popbox({
        blur:true,
        overlay:true,
      });

  //open a popbox
  popbox.open('mypopbox1');	
  //close a popboxs
  popbox.close('mypopbox1');	
  //close all popboxs
  popbox.clear(); 
</script>

Emitted events

  • 'popbox_opening': when a popbox is opening, that popbox element will emit this event..
  • 'popbox_opened': when a popbox is opened, that popbox element will emit this event..
  • 'popbox_closing': when a popbox is closing, that popbox element will emit this event..
  • 'popbox_closed': when a popbox is closed, that popbox element will emit this event..

License

MIT License

Copyright (c) 2018 Biraj Ghosh <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Oncebot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].