ng-voice-inputs
Version:
This library provides Voice Recognition service to fill the form input fields (text, datepicker, textarea, button-click) for Angular application.
26 lines (25 loc) • 837 B
TypeScript
import { ElementRef, OnInit } from '@angular/core';
import { VuiVoiceRecognitionService } from './ng-voice-inputs.service';
/**
* Options for VuiInput directive
* @param type Data type for input. Possible values are: 'text', 'address', 'date', 'number'. Default: 'text'
* @param format (Optional) Date format for datepicker input. eg, 'MM/DD/YYYY'. Default: 'DD/MM/YYYY'.
*/
declare class Options {
type: string;
format?: string;
}
export declare class VuiInputDirective implements OnInit {
private vuiService;
private el;
/**
* Options for vui input field
* type: 'text', 'address', 'date', 'number'
* format: 'DD/MM/YYYY'
*/
options: Options;
constructor(vuiService: VuiVoiceRecognitionService, el: ElementRef);
ngOnInit(): void;
formatDate(date: Date): string;
}
export {};