moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
32 lines (31 loc) • 971 B
TypeScript
import { OnInit, EventEmitter, ElementRef } from '@angular/core';
/**
* Button Component is a button which can be used across the application to have
* same button style.
*
* You're free to create custom (bootstrap) buttons as your application
* requires. The main advantages to this component are:
*
* - consistency
* - simplicity (less markup)
* - making future changes easier, such as automatically updating any changes
* to button colour stylings.
*
*
* @example
* <common-button label='Remove Spouse'
* [buttonType]="buttonClass"
* (btnClick)='removeSpouse()'>
* </common-button>
* @export
*/
export declare class ButtonComponent implements OnInit {
buttonType: 'default' | 'primary' | 'secondary';
disabled: boolean;
label: string;
btnClick: EventEmitter<any>;
button: ElementRef;
constructor();
ngOnInit(): void;
onClick($event: any): void;
}