Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Add autoCloseDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Jul 1, 2014
1 parent dbe3d34 commit a75412f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions paper-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<link href="../core-overlay/core-overlay.html" rel="import">
<link href="../paper-shadow/paper-shadow.html" rel="import">

<polymer-element name="paper-dialog" attributes="opened heading transition">
<polymer-element name="paper-dialog" attributes="opened heading transition autoCloseDisabled">

<template>

Expand All @@ -31,7 +31,7 @@
<paper-shadow z="3" hasPosition></paper-shadow>
</div>

<core-overlay id="overlay" opened="{{opened}}" target="{{}}" sizingTarget="{{$.container}}" closeSelector="[dismissive],[affirmative]" transition="{{transition}}" margin="20"></core-overlay>
<core-overlay id="overlay" opened="{{opened}}" autoCloseDisabled="{{autoCloseDisabled}}" target="{{}}" sizingTarget="{{$.container}}" closeSelector="[dismissive],[affirmative]" transition="{{transition}}" margin="20"></core-overlay>

<div id="container" layout vertical>

Expand Down Expand Up @@ -63,7 +63,17 @@ <h1>{{heading}}</h1>
* @default false
*/
opened: false,


/**
* By default a dialog will close automatically if the user
* taps outside it or presses the escape key. Disable this
* behavior by setting the `autoCloseDisabled` property to true.
* @attribute autoCloseDisabled
* @type boolean
* @default false
*/
autoCloseDisabled: false,

/**
* @attribute heading
* @type string
Expand Down

0 comments on commit a75412f

Please sign in to comment.