OLD | NEW |
1 # iron-overlay-behavior | 1 # iron-overlay-behavior |
2 Makes an element an overlay with an optional backdrop. | 2 Makes an element an overlay with an optional backdrop. |
3 | 3 |
4 `iron-overlay-behavior` displays an element on top of other content. It starts o
ut hidden and is | 4 `iron-overlay-behavior` displays an element on top of other content. It starts o
ut hidden and is |
5 displayed by calling `open()` or setting the `opened` property to `true`. It may
be closed by | 5 displayed by calling `open()` or setting the `opened` property to `true`. It may
be closed by |
6 calling `close()` or `cancel()`, or by setting the `opened` property to `true`. | 6 calling `close()` or `cancel()`, or by setting the `opened` property to `true`. |
7 | 7 |
8 The difference between `close()` and `cancel()` is user intent. `close()` genera
lly implies that | 8 The difference between `close()` and `cancel()` is user intent. `close()` genera
lly implies that |
9 the user acknowledged the content of the overlay. By default, it will cancel whe
never the user taps | 9 the user acknowledged the content of the overlay. By default, it will cancel whe
never the user taps |
10 outside it or presses the escape key. This behavior can be turned off via the `n
o-cancel-on-esc-key` | 10 outside it or presses the escape key. This behavior can be turned off via the `n
o-cancel-on-esc-key` |
11 and the `no-cancel-on-outside-click` properties. | 11 and the `no-cancel-on-outside-click` properties. |
OLD | NEW |