@minecraft/server-ui
    Preparing search index...

    Class CustomFormBeta

    A customizable form that lets you put buttons, labels, toggles, dropdowns, sliders, and more into a form! Built on top of Observable, the form will update when the Observables' value changes.

    Index

    Constructors

    Methods

    • Beta

      Returns void

      Tell the client to close the form. Throws an error if the form is not open.

    • Beta

      Returns CustomForm

      Adds a close "X" button to the form.

    • Beta

      Returns boolean

      Returns true if the form is currently being shown to the player.

    • Beta

      Returns Promise<boolean>

      Shows the form to the player. Will return false if the client was busy (i.e. in another menu or this one is open). Will throw if the user disconnects.