New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

popup-info

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popup-info

The use of Bower for dependencies is not sanctioned in Origami v2. Use npm with webpack or browserify instead.

  • 1.0.12
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

popup-info

Summary

PopUp-Info is an initiative to build a component based player adhering to both the Origami and UX frameworks. This module aims to render the react popup with some custom settings.

Description

To use the popup-info component in your application, kindly take the latest version of the popup-info in your application. "popup-info": "^1.0.10"

Include the following lines in the application import {PopUpInfo} from 'popup-info';

In render method of the application :

popUpCollection

popUpCollection is an array of objects and its structure need to be followed as

popUpCollection = [ { ‘popOverCollection’ : { ‘popOverDescription’ : “Desc1”, ‘popOverTitle’ : “Title1” }, ‘bookDiv’ : bookId, ‘item’ : DOM of the link(Glossary) or Icon(MoreInfo)
} , { ‘popOverCollection’ : { ‘popOverDescription’ : “Desc2”, ‘popOverTitle’ : “Title2” }, ‘bookDiv’ : bookId, ‘item’ : DOM of the link(Glossary) or Icon(MoreInfo)

                }, .. ,
                {
                    ‘popOverCollection’ : { ‘popOverDescription’ : “DescN”, ‘popOverTitle’ : “TitleN” },
                              ‘bookDiv’ : bookId,
                                 ‘item’ : DOM of the link(Glossary) or Icon(MoreInfo)                               
                }
              ]

After passing all the required properties from the client application to popup-info component, popup-info component will handle the clicks, positioning the popup, and rendering the popup.

this.popUpArray[i] = popUpProps.popOverCollection; this.bookDiv = popUpProps.bookDiv popUpProps.item.addEventListener('click', this.framePopOver.bind(this, i));

Next Step

If you are a consumer of this component, see guidance on usage.

If you are a contributor to this component's development, see guidance on contributing.

Keywords

FAQs

Package last updated on 24 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc