Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FormComponent<"button">
    • Button

Index

Constructors

Properties

Methods

Constructors

  • new Button(data: { icon?: string; text?: string; onClick?: any }): Button
  • Creates a new button with the provided data

    Parameters

    • data: { icon?: string; text?: string; onClick?: any }

      The data to build the button with

      • Optional icon?: string

        The texture path to a texture from a resource pack that will be used as this button's icon

      • Optional text?: string

        The text that will appear on this button

        default

        "Button"

      • onClick?:function

    Returns Button

Properties

icon?: string

The texture path to a texture from a resource pack that will be used as this button's icon

onClick?: ((plr: MBCPlayer) => void)

Type declaration

    • A callback that will be executed upon this button being clicked

      Parameters

      Returns void

text: string

The text that will appear on this button

default

Button

type: "button"

The type of FormComponent

Methods

  • setDef(curr: any, to: any): any

Generated using TypeDoc version 0.22.18, the 7/5/2022