primevue-mirror/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface DataViewLayoutOptionsProps {
/**
* Value of the component.
*/
modelValue?: string | undefined;
}
2022-09-14 11:26:01 +00:00
export interface DataViewLayoutOptionsSlots {}
2022-09-06 12:03:37 +00:00
export declare type DataViewLayoutOptionsEmits = {
/**
* Emitted when the value changes.
* @param {*} value - New value.
*/
'update:modelValue': (value: string) => void;
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class DataViewLayoutOptions extends ClassComponent<DataViewLayoutOptionsProps, DataViewLayoutOptionsSlots, DataViewLayoutOptionsEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
DataViewLayoutOptions: GlobalComponentConstructor<DataViewLayoutOptions>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* 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:
*
2023-03-02 08:32:40 +00:00
* - [DataViewLayoutOptions](https://primevue.org//dataview)
2022-09-06 12:03:37 +00:00
*
*/
export default DataViewLayoutOptions;