@visa/nova-angular
Version:
Visa Product Design System Nova Angular library
20 lines (19 loc) • 851 B
TypeScript
import { AppReadyService } from '../_utilities/services/app-stable-check.service';
import { CheckboxDirective } from '../checkbox/checkbox.directive';
import { RadioDirective } from '../radio/radio.directive';
import * as i0 from "@angular/core";
/**
* Service to toggle checkbox or radio programmatically.
*/
export declare class ToggleControlService {
private appReadyService;
constructor(appReadyService: AppReadyService);
/**
* Toggles checkbox or radio programmatically.
* @param control Checkbox or Radio item to toggle.
* @param event Event to check if target is the control.
*/
toggleControl(control: RadioDirective | CheckboxDirective, event: Event): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleControlService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ToggleControlService>;
}