Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AppCtrl<T>

Controller for App.

Type parameters

Hierarchy

  • AppCtrl

Index

Constructors

constructor

  • Constructor.

    Parameters

    • app_: App<T>

      The user-provided application state.

    • appComputation_: AppComputation

      The computed application state.

    • settingsCtrl: SettingsCtrl

      The controller for elementary settings (name of YouTrack instance, base URL, etc.).

    • alertsCtrl: AlertsCtrl

      The controller for displaying alerts to the user.

    • youTrackMetadataCtrl: YouTrackMetadataCtrl

      The controller for retrieving YouTrack metadata.

    • invalidCounter: Counter

      The controller for counting the number of invalid settings. Unfortunately, in its current form, only the views update the counter. This is because the count information originates from the HTML5 constraint validation and makes its way into invalidCounter predominantly through data binding (for instance, with bindString()). This somewhat blurs the lines between controller and view. A more principled distribution of concerns would be to have the validation entirely done by controllers. The refactoring will be left for the future...

    Returns AppCtrl

Properties

alertsCtrl

alertsCtrl: AlertsCtrl

The controller for displaying alerts to the user.

invalidCounter

invalidCounter: Counter

The controller for counting the number of invalid settings. Unfortunately, in its current form, only the views update the counter. This is because the count information originates from the HTML5 constraint validation and makes its way into invalidCounter predominantly through data binding (for instance, with bindString()). This somewhat blurs the lines between controller and view. A more principled distribution of concerns would be to have the validation entirely done by controllers. The refactoring will be left for the future...

settingsCtrl

settingsCtrl: SettingsCtrl

The controller for elementary settings (name of YouTrack instance, base URL, etc.).

youTrackMetadataCtrl

youTrackMetadataCtrl: YouTrackMetadataCtrl

The controller for retrieving YouTrack metadata.

Methods

showErrorIfFailure

  • showErrorIfFailure(title: string, promise: Promise<void>): void

Static createDefaultAppCtrl

Generated using TypeDoc