From 4d61a1ef2b23a6dd248a54d6da454b7eafdfdbe5 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 16:30:58 +0300 Subject: [PATCH] Fixed #1836 - For DataViewLayoutOptions --- .../DataViewLayoutOptions.d.ts | 39 ++++++++++++++++--- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts b/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts index 46baa37a4..7a34110e0 100755 --- a/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +++ b/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts @@ -1,10 +1,39 @@ -interface DataViewLayoutOptionsProps { - modelValue?: string; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +export interface DataViewLayoutOptionsProps { + /** + * Value of the component. + */ + modelValue?: string | undefined; } -declare class DataViewLayoutOptions { - $props: DataViewLayoutOptionsProps; - $emit(eventName: 'update:modelValue', value: string): this; +export interface DataViewLayoutOptionsSlots { } +export declare type DataViewLayoutOptionsEmits = { + /** + * Emitted when the value changes. + * @param {*} value - New value. + */ + 'update:modelValue': (value: string) => void; +} + +declare class DataViewLayoutOptions extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + DataViewLayoutOptions: GlobalComponentConstructor + } +} + +/** + * + * When both layout modes are enabled in DataView, a UI element would be necessary to let the user toggle between the view. + * DataViewLayoutOptions is a helper component to display a buttonset to choose the layout mode in DataView. + * + * Demos: + * + * - [DataViewLayoutOptions](https://www.primefaces.org/primevue/showcase/#/dataview) + * + */ export default DataViewLayoutOptions;