Skip to content

Neovici/cosmoz-dialog

Repository files navigation

cosmoz-dialog

Build Status Published on webcomponents.org semantic-release

cosmoz-dialog is a Polymer component workaround for paper-dialog that fit the backdrop to the element specified by the fitInto property.

Credits

Usage

Example:

<cosmoz-dialog with-backdrop id="dialogInRootStackingContext">
	<template>
		<h2>Dialog Title</h2>
		<p>
			This dialog is created in the root stacking context.
		</p>
		<p>
			Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
			eiusmod tempor incididunt ut labore et dolore magna aliqua.
			Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
			nisi ut aliquip ex ea commodo consequat. Duis aute
			irure dolor in reprehenderit in voluptate velit esse cillum dolore
			eu fugiat nulla pariatur.
			Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
			officia deserunt mollit anim id est laborum.
		</p>
		<div class="buttons">
			<paper-button dialog-dismiss>Cancel</paper-button>
			<paper-button dialog-confirm>Accept</paper-button>
		</div>
	</template>
</cosmoz-dialog>

Install

bower install --save Neovici/cosmoz-dialog

Add the cosmoz-dialog import

<link rel="import" href="bower_components/cosmoz-dialog/cosmoz-dialog.html" />

Documentation

See http://neovici.github.io/cosmoz-dialog.

About

Polymer component workaround for paper-dialog that fit the backdrop to the element specified by the fitInto property.

Resources

License

Stars

Watchers

Forks

Packages

No packages published