Skip to content
Docs Engine
Visit Docs Engine on GitHub
Set theme to dark (⇧+D)

Class

Background

The Class class is used whenever you’re trying to create an instance. It’s particularly useful when you’re trying to create multiple instances. Here are some common uses:


Constructor

const instance = new Class()

Properties

  • instance.title string read-only

    • The title of the instance
  • instance.visible boolean read-only

    • Boolean indicating if the instance is visible

Methods

  • setTitle(newTitlestring)
    • Sets the title to newTitle.
  • hide() boolean
    • Attempts to hide the instance. Returns a boolean whether hiding was successful.

Common issues

Sometimes you’ll find that when you create instances of Class, unexpected things happen. It’s important to remember that you can always debug your Class.


See also