Themes or Styles support. This is an Observable.

Hierarchy-Diagram

UML class diagram of Themes
Legend
icon for a class in the UML class diagram class
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Implements

Constructors

Properties

activeTheme: string = ""
cssActive: boolean = false
dir: string = ""
observers: any = null
opts: any
parser: IParser
supportedThemes: string[] = ...

Methods

  • Activate the style setting.

    This activates one and disables the others of several styles. On ready this method notifies possible Observers registered on this Observable.

    Parameters

    • activeTheme: string

      the theme / style to be activated.

    Returns Promise<void>

  • Initializes the theme choice, the dialog to select a theme.

    This method must be invoked during initialization time. All other processing is done internally.

    Parameters

    • activeTheme: string

      the theme as it comes from the stored parameters

    • dir: string = 'ltr'

      the language direction parameter (comes from the selected language)

    Returns Promise<void>

  • Initializes css for a theme. Performed on demand.

    Parameters

    • theme: string

    Returns Promise<void>

  • Notifies the Observers about an event of the Observable.

    This is the asynchronous variant of notify as asynchronous observers can be called The sent data is part of the contract between the Observable and its Observers

    Parameters

    • Rest...args: any

    Returns Promise<void>

  • Sets the RTL style.

    This enables / disables the RTL style file.

    Parameters

    • dir: string = 'ltr'

      the direction ('ltr' or 'rtl')

    Returns void

  • Subscribes a function as an Observer.

    Supports also first time notification by providing additional arguments. This must be done by overriding this function in the Observable and providing the relevant argument(s).

    Parameters

    • func: any
    • Rest...args: any

    Returns void