Skip to content

Commit

Permalink
No cancel behavior (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
srijken authored and ronnyroeller committed Jul 4, 2018
1 parent 0e7422f commit 9593bf3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cache:
before_install:
- "if [ -d node_modules ] && [ x$(cat node_modules/.last-node-version 2>/dev/null) != x$(node -e 'console.log(process.version)') ]; then npm rebuild && node -e 'console.log(process.version)' > node_modules/.last-node-version; fi"
before_script:
- npm install web-component-tester bower@1.7.9 polylint
- npm install web-component-tester bower@1.8.4 polylint
- $(npm bin)/bower install
- $(npm bin)/polylint --no-recursion
script:
Expand Down
18 changes: 17 additions & 1 deletion paper-bottom-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
</style>

<paper-dialog id="dialog" class="dialog" animation-config="{{_dialogAnimationConfig}}" modal="[[modal]]" with-backdrop="[[withBackdrop]]" on-iron-overlay-closed="_attemptRemoval" auto-fit-on-attach>
<paper-dialog id="dialog" class="dialog" animation-config="{{_dialogAnimationConfig}}" no-cancel-on-esc-key="[[noCancelOnEscKey]]" no-cancel-on-outside-click="[[noCancelOnOutsideClick]]" modal="[[modal]]" with-backdrop="[[withBackdrop]]" on-iron-overlay-closed="_attemptRemoval" auto-fit-on-attach>
<div class="content">
<slot id="items"></slot>
<paper-bottom-sheet-item hidden$="[[!modal]]" id="cancel" text="[[cancelText]]" icon="icons:close" on-tap="close"></paper-bottom-sheet-item>
Expand Down Expand Up @@ -105,6 +105,22 @@
reflectToAttribute: true
},

/**
* Set to true to disable canceling the overlay with the ESC key.
*/
noCancelOnEscKey: {
type: Boolean,
value: false
},

/**
* Set to true to disable canceling the overlay by clicking outside it.
*/
noCancelOnOutsideClick: {
type: Boolean,
value: false
},

/**
* The animation config supplied to the included paper-dialog. Will be empty unless "slide"
* is set.
Expand Down

0 comments on commit 9593bf3

Please sign in to comment.