Giter Site home page Giter Site logo

metal-modal's Introduction

metal-modal

Metal's modal component.

Setup

  1. Install NodeJS >= v0.12.0, if you don't have it yet.

  2. Install global dependencies:

[sudo] npm install -g gulp
  1. Install local dependencies:
npm install
  1. Build the code:
npm run build
  1. Open the demo at demos/index.html on your browser.

metal-modal's People

Contributors

eduardolundgren avatar ethib137 avatar mairatma avatar vbence86 avatar zenorocha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

metal-modal's Issues

Position

The initial position of the modal should be programmable and the user should be able to move the modal around

Add option to pass my own close modal function

Right now I have no way of managing the modal's state, I would like the this.close method to check if there is a this.props.close method, and call that instead.

Right now we have duplicated the modal's code, so that we can mange the state otherwise.

	created() {
		this.eventHandler_ = new EventHandler();
		this.hide = this.hide.bind(this);
	}

		hide() {
		if (this.props.close) {
			this.props.close();
		}
		else {
			this.visible = false;
		}
	}

Resizeable modal

If the body is too long and the modal become longer than the browser window is not possible to scroll and see the bottom part.

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.