Skip to content

A popup component based on web component v1 standards

License

Notifications You must be signed in to change notification settings

rohithsathya/rsat-popup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<rsat-popup>

<rsat-popup> Is a popup/modal dialog component based on web component v1 standards.

Demo

Install

Install the component using Bower:

$ bower install rsat-popup --save

Or download as ZIP

Usage

  1. Import Web Components' polyfill (if needed, for older browsers):

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/rsat-popup/rsat-popup.html" />
  3. Start using it!

     <rsat-popup pos="center" backdrop="true" show="false">
        <h3>your content goes here</h3>
    </rsat-popup>

options

Options   Explanation Allowed Values
pos defines where to display the popup w.r.t window center, top-left, top-right, bottom-left, bottom-right
show   defines if the popup is shown or not, set to true to display popup true or false
backdrop this flag when set to true will draw a backdrop underneath popup true or false

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

The MIT License (MIT)

Copyright (c) 2017 RSAT

About

A popup component based on web component v1 standards

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages