Class Title<T>

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

Notes

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

Constructors

Properties

_caption: string = ''
_changed: Signal<Title<T>, void> = ...
_className: string = ''
_closable: boolean = false
_dataset: Title.Dataset
_icon: undefined | VirtualElement.IRenderer = undefined
_iconClass: string = ''
_iconLabel: string = ''
_isDisposed: boolean = false
_label: string = ''
_mnemonic: number = -1
owner: T

The object which owns the title.

Accessors

  • get caption(): string
  • Get the caption for the title.

    Notes

    The default value is an empty string.

    Returns string

  • set caption(value): void
  • Set the caption for the title.

    Parameters

    • value: string

    Returns void

  • get className(): string
  • Get the extra class name for the title.

    Notes

    The default value is an empty string.

    Returns string

  • set className(value): void
  • Set the extra class name for the title.

    Notes

    Multiple class names can be separated with whitespace.

    Parameters

    • value: string

    Returns void

  • get closable(): boolean
  • Get the closable state for the title.

    Notes

    The default value is false.

    Returns boolean

  • set closable(value): void
  • Set the closable state for the title.

    Notes

    This controls the presence of a close icon when applicable.

    Parameters

    • value: boolean

    Returns void

  • get iconClass(): string
  • Get the icon class name for the title.

    Notes

    The default value is an empty string.

    Returns string

  • set iconClass(value): void
  • Set the icon class name for the title.

    Notes

    Multiple class names can be separated with whitespace.

    Parameters

    • value: string

    Returns void

  • get iconLabel(): string
  • Get the icon label for the title.

    Notes

    The default value is an empty string.

    Returns string

  • set iconLabel(value): void
  • Set the icon label for the title.

    Notes

    Multiple class names can be separated with whitespace.

    Parameters

    • value: string

    Returns void

  • get label(): string
  • Get the label for the title.

    Notes

    The default value is an empty string.

    Returns string

  • set label(value): void
  • Set the label for the title.

    Parameters

    • value: string

    Returns void

  • get mnemonic(): number
  • Get the mnemonic index for the title.

    Notes

    The default value is -1.

    Returns number

  • set mnemonic(value): void
  • Set the mnemonic index for the title.

    Parameters

    • value: number

    Returns void

Methods