Code Monkey home page Code Monkey logo

reoverlay's Introduction

reoverlay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

reoverlay's Issues

misspelling

Hello, 😍In Reoverlay.js you wrote snappshots, I think it's misspelling, The right one is snapshots. Thanksβ™₯️

TypeScript support

Hello Hiradβœ‹, If you want, I could convert the JS to TS project and add more features.😍

TypeScript support

Hello. I see, that you've already had types in this project, but then you removed it for some reason. Is it possible to add types for typescript support? Thnx.

Add Option to Prevent Outside Click Closing of the Modal

First off, thanks for this awesome package. There are some instances where I don't want the modal to auto-close when the user clicks outside of the modal.

An example is: the modal displays a form where a user enters a bunch of data and then accidentally clicks outside and loses everything. I can ensure they don't actually lose anything with localStorage or some global state management solution, but I could prevent all of that with a simple option that turns off the auto-close feature on outside click.

I do recognize that I can simply implement my own ModalWrapper, but making this a core option would probably benefit a lot of people and seems very easy to implement. If you agree that this would be beneficial to the community, I also wouldn't mind making a pull request to expedite things.

Scrollable Content

Hi, i really love the way you are handling Modals.

I'm struggling to use it though with Big contents, which needs vertical scrolling.

The goal is to create a 80% width and 80% height modal with scrollable content. Am i doing something wrong or the sizing an actual problem?

[Feature Request] close on escape

Thanks for the great lib.

The lib already supports close on "click outside", woudn't it make sense to add close on "press esacpe key" as well?

Change properties of Modal

Consider following scenario:

const SomeComponent: FC = () => {
	const {
		dispatchFileAction,
		files
	} = useFile()
	return (
	    <button
		    onClick={ (): void => {
			    Reoverlay.showModal(FileBrowserModal, {
				    files,
				    onFolderOpen: (file): void => {
					    void dispatchFileAction({
						    payload: file.key,
						    type: EFileAction.openDirectory
					    })
				    }
			    })
		    } }
		    type="button"
	    >
		    Toggle File Browser
	    </button>
	)
}

How would I correctly update properties of the used modal FileBrowserModal?

Would be a static method like Reoverlay.updateProps feasable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.