TerminalService .d.ts updated
parent
6a96ccc50c
commit
ff6c5f6dc1
|
@ -1,3 +1,9 @@
|
||||||
|
/**
|
||||||
|
* [Live Demo](https://www.primevue.org/terminal/)
|
||||||
|
*
|
||||||
|
* @module terminalservice
|
||||||
|
*
|
||||||
|
*/
|
||||||
/**
|
/**
|
||||||
* Confirmation Service methods.
|
* Confirmation Service methods.
|
||||||
*
|
*
|
||||||
|
@ -5,17 +11,20 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export interface TerminalServiceOptions {
|
export interface TerminalServiceOptions {
|
||||||
|
/**
|
||||||
|
* Displays the terminal using the action options.
|
||||||
|
*/
|
||||||
on: (action: 'command' | 'response' | undefined, fn: any) => void;
|
on: (action: 'command' | 'response' | undefined, fn: any) => void;
|
||||||
|
/**
|
||||||
|
* Emits the terminal using the action options.
|
||||||
|
*/
|
||||||
emit: (action: 'command' | 'response' | undefined, params?: any) => void;
|
emit: (action: 'command' | 'response' | undefined, params?: any) => void;
|
||||||
|
/**
|
||||||
|
* Closes the terminal using the action options.
|
||||||
|
*/
|
||||||
off: (action: 'command' | 'response' | undefined, fn: any) => void;
|
off: (action: 'command' | 'response' | undefined, fn: any) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare const TerminalService: TerminalServiceOptions;
|
declare const TerminalService: TerminalServiceOptions;
|
||||||
|
|
||||||
/**
|
|
||||||
* [Live Demo](https://www.primevue.org/terminal/)
|
|
||||||
*
|
|
||||||
* @module terminalservice
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export default TerminalService;
|
export default TerminalService;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<DocComponent title="Vue Terminal Component" header="Terminal" description="Terminal is a text based user interface." :componentDocs="docs" :apiDocs="['Terminal']" />
|
<DocComponent title="Vue Terminal Component" header="Terminal" description="Terminal is a text based user interface." :componentDocs="docs" :apiDocs="['Terminal', 'TerminalService']" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue