Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Label

Label can be used to title and group different controls.

Hierarchy

Implements

Index

Constructors

constructor

Properties

bold

bold: boolean

Bolds the text on the label, presented to the participants.

client

client: IClient

controlID

controlID: string

disabled

disabled: boolean

etag

etag: string
deprecated

etags are no longer used, you can always omit/ignore this

italic

italic: boolean

Italicize to text on the label, presented ot the participants.

kind

kind: string

meta

meta: IMeta

position

position: IGridPlacement[]

Protected scene

scene: Scene

text

text: string

The text displayed on a label, presented to the participants. Set this value using setText

textColor

textColor: string

The color of the text on the label, presented to the participants. Set this value using setTextColor

textSize

textSize: string

The size of the text on the label, presented to the participants. Set this value using setTextSize

underline

underline: boolean

Underlines the text on the label, presented to the participants.

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

destroy

  • destroy(): void

disable

  • disable(): Promise<void>

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

enable

  • enable(): Promise<void>

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

Optional giveInput

  • giveInput(input: IInput): Promise<void>

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

on

  • on(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

onUpdate

once

  • once(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

receiveInput

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

Protected sendInput

  • sendInput<K>(input: K): Promise<void>

setClient

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setScene

  • setScene(scene: Scene): void

setText

  • setText(text: string): Promise<void>

setTextColor

  • setTextColor(textColor: string): Promise<void>

setTextSize

  • setTextSize(textSize: string): Promise<void>

update

Protected updateAttribute

  • updateAttribute<K>(attribute: K, value: T[K]): Promise<void>

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc