* The controlled `open` state of a `details` or `dialog`. On a `dialog` * it shows a non-modal dialog. `open` and `modal` set the same state, and * the last call wins. * * @since 4.2.0
(
this: VoidElement<Msg, R, E, N>,
open: boolean
)
| 1273 | * @since 4.2.0 |
| 1274 | */ |
| 1275 | open<N extends HTMLDetailsElement | HTMLDialogElement>( |
| 1276 | this: VoidElement<Msg, R, E, N>, |
| 1277 | open: boolean |
| 1278 | ): this { |
| 1279 | return this.prop("open", open) as any |
| 1280 | } |
| 1281 | /** |
| 1282 | * Shows a `dialog` as a modal while `modal` is true: in the top layer, with |
| 1283 | * a backdrop, the rest of the page inert and focus kept inside, and closed |