moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
19 lines (18 loc) • 811 B
TypeScript
import { Router, Params } from '@angular/router';
export declare abstract class AbstractBaseForm {
protected router: Router;
/** Disables all inputs (todo: not implemented) */
disabled: boolean;
/** Show or hide the loading spinner as required, should be passed to form action bar. */
loading: boolean;
/** What happens when the user clicks the continue button. Generally navigating to another page. */
abstract continue(): void;
/** Determines if the Continue button is disabled on the form action bar */
abstract canContinue(): boolean;
/**
* Constructor
*/
constructor(router: Router);
/** Navigates to a route then automatically scrolls to the top of the page. */
protected navigate(url: string, queryParams?: Params): void;
}