New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-detachable-window

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-detachable-window

Wrap a portion of the DOM or a group of react components and make it detachable into a new window

latest
npmnpm
Version
0.5.10
Version published
Weekly downloads
10
-62.96%
Maintainers
1
Weekly downloads
 
Created
Source

react-detachable-window

ReactDetachableWindow wraps a portion of the DOM or a group of react components and make it detachable from current window frame into a new window it takes care to copy the stylesheets and title from the original frame into the new window or you can define your own

See a live example

Install:

npm i react-detachable-window

Use:

import ReactDetachableWindow from 'react-detachable-window'
<ReactDetachableWindow title='I am detached!' windowOptions={{width: 800, height: 600}}>
    <!-- DOM defined here can be detached to a new popup window and re-attached-->
</ReactDetachableWindow>

Component properties

  • windowOptions - Optional: A hash of options passed to the window.open(URL, name, specs, replace) 'specs' parameter
  • title - Optional: A string title for the new window
  • reattachButton - Optional: A jsx element which, when clicked, closes the popup window
  • detachButton - Optional: A jsx element which, when clicked, opens the popup window

TODO List

  • copy a complete set of attributes from original window into the new popup
  • allow property to define the containing DOM for the detachable portion in the new popup

Keywords

docking

FAQs

Package last updated on 25 Jul 2018

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