Fixed #1836 - For DataViewLayoutOptions

pull/1846/head
mertsincan 2021-12-01 16:30:58 +03:00
parent 35cf13b8dc
commit 4d61a1ef2b
1 changed files with 34 additions and 5 deletions

View File

@ -1,10 +1,39 @@
interface DataViewLayoutOptionsProps { import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
modelValue?: string;
export interface DataViewLayoutOptionsProps {
/**
* Value of the component.
*/
modelValue?: string | undefined;
} }
declare class DataViewLayoutOptions { export interface DataViewLayoutOptionsSlots {
$props: DataViewLayoutOptionsProps;
$emit(eventName: 'update:modelValue', value: string): this;
} }
export declare type DataViewLayoutOptionsEmits = {
/**
* Emitted when the value changes.
* @param {*} value - New value.
*/
'update:modelValue': (value: string) => void;
}
declare class DataViewLayoutOptions extends ClassComponent<DataViewLayoutOptionsProps, DataViewLayoutOptionsSlots, DataViewLayoutOptionsEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
DataViewLayoutOptions: GlobalComponentConstructor<DataViewLayoutOptions>
}
}
/**
*
* 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; export default DataViewLayoutOptions;