3.0.3 • Published 2 years ago

@neovici/cosmoz-dialog v3.0.3

Weekly downloads
185
License
Apache-2.0
Repository
github
Last release
2 years ago

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.