MCPcopy Create free account
hub / github.com/Effect-TS/effect / open

Method open

packages/effect/src/ui/html/Html.ts:1275–1280  ·  view source on GitHub ↗

* 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
  )

Source from the content-addressed store, hash-verified

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

Callers 15

Release.tsFile · 0.45
replyFunction · 0.45
TwoEditors.tsFile · 0.45
testLayerFunction · 0.45
pendingInlineFunction · 0.45
openVersion1Function · 0.45
ssr.tsFile · 0.45

Calls 1

propMethod · 0.65

Tested by 3

replyFunction · 0.36
pendingInlineFunction · 0.36
openVersion1Function · 0.36