Theia API Documentation v1.65.0
    Preparing search index...

    An object which holds data related to an object's title.

    A title object is intended to hold the data necessary to display a header for a particular object. A common example is the TabPanel, which uses the widget title to populate the tab for a child widget.

    It is the responsibility of the owner to call the title disposal.

    Type Parameters

    • T

    Implements

    • IDisposable
    Index

    Constructors

    • Construct a new title.

      Type Parameters

      • T

      Parameters

      Returns Title<T>

    Properties

    owner: T

    The object which owns the title.

    Accessors

    • get caption(): string

      Get the caption for the title.

      The default value is an empty string.

      Returns string

    • set caption(value: string): void

      Set the caption for the title.

      Parameters

      • value: string

      Returns void

    • get changed(): ISignal<this, void>

      A signal emitted when the state of the title changes.

      Returns ISignal<this, void>

    • get className(): string

      Get the extra class name for the title.

      The default value is an empty string.

      Returns string

    • set className(value: string): void

      Set the extra class name for the title.

      Multiple class names can be separated with whitespace.

      Parameters

      • value: string

      Returns void

    • get closable(): boolean

      Get the closable state for the title.

      The default value is false.

      Returns boolean

    • set closable(value: boolean): void

      Set the closable state for the title.

      This controls the presence of a close icon when applicable.

      Parameters

      • value: boolean

      Returns void

    • get dataset(): Dataset

      Get the dataset for the title.

      The default value is an empty dataset.

      Returns Dataset

    • set dataset(value: Dataset): void

      Set the dataset for the title.

      This controls the data attributes when applicable.

      Parameters

      Returns void

    • get icon(): undefined | IRenderer

      Get the icon renderer for the title.

      The default value is undefined.

      Returns undefined | IRenderer

    • set icon(value: undefined | IRenderer): void

      Set the icon renderer for the title.

      A renderer is an object that supplies a render and unrender function.

      Parameters

      • value: undefined | IRenderer

      Returns void

    • get iconClass(): string

      Get the icon class name for the title.

      The default value is an empty string.

      Returns string

    • set iconClass(value: string): void

      Set the icon class name for the title.

      Multiple class names can be separated with whitespace.

      Parameters

      • value: string

      Returns void

    • get iconLabel(): string

      Get the icon label for the title.

      The default value is an empty string.

      Returns string

    • set iconLabel(value: string): void

      Set the icon label for the title.

      Multiple class names can be separated with whitespace.

      Parameters

      • value: string

      Returns void

    • get isDisposed(): boolean

      Test whether the title has been disposed.

      Returns boolean

    • get label(): string

      Get the label for the title.

      The default value is an empty string.

      Returns string

    • set label(value: string): void

      Set the label for the title.

      Parameters

      • value: string

      Returns void

    • get mnemonic(): number

      Get the mnemonic index for the title.

      The default value is -1.

      Returns number

    • set mnemonic(value: number): void

      Set the mnemonic index for the title.

      Parameters

      • value: number

      Returns void

    Methods

    • Dispose of the resources held by the title.

      It is the responsibility of the owner to call the title disposal.

      Returns void