/** * @license * Copyright (c) 2014, 2023, Oracle and/or its affiliates. * Licensed under The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ * @ignore */ import * as AccUtils from "../accUtils"; import * as ko from 'knockout'; class IncidentsViewModel { messageText: ko.Observable; constructor() { this.messageText = ko.observable("Hello World"); } /** * Optional ViewModel method invoked after the View is inserted into the * document DOM. The application can put logic that requires the DOM being * attached here. * This method might be called multiple times - after the View is created * and inserted into the DOM and after the View is reconnected * after being disconnected. */ connected(): void { AccUtils.announce("Incidents page loaded."); document.title = "Incidents"; // implement further logic if needed } /** * Optional ViewModel method invoked after the View is disconnected from the DOM. */ disconnected(): void { // implement if needed } /** * Optional ViewModel method invoked after transition to the new View is complete. * That includes any possible animation between the old and the new View. */ transitionCompleted(): void { // implement if needed } } export = IncidentsViewModel;