primevue-mirror/components/lib/inputswitch/InputSwitch.d.ts

70 lines
2.0 KiB
TypeScript
Raw Normal View History

2023-03-01 12:40:56 +00:00
/**
*
2023-03-01 12:59:47 +00:00
* InputSwitch is used to select a boolean value.
2023-03-01 12:40:56 +00:00
*
* [Live Demo](https://www.primevue.org/toggleswitch/)
2023-03-01 12:40:56 +00:00
*
* @module inputswitch
*
*/
import * as ToggleSwitch from '../toggleswitch';
import { DefineComponent, EmitFn, GlobalComponentConstructor } from '../ts-helpers';
2023-05-05 13:10:07 +00:00
/**
* Custom passthrough(pt) option method.
*/
export interface InputSwitchPassThroughMethodOptions extends ToggleSwitch.ToggleSwitchPassThroughMethodOptions {}
2023-05-05 13:10:07 +00:00
/**
* Custom passthrough(pt) options.
* @see {@link InputSwitchProps.pt}
*/
export interface InputSwitchPassThroughOptions extends ToggleSwitch.ToggleSwitchPassThroughOptions {}
2023-05-05 13:10:07 +00:00
/**
* Custom passthrough attributes for each DOM elements
*/
export interface InputSwitchPassThroughAttributes extends ToggleSwitch.ToggleSwitchPassThroughAttributes {}
2023-05-05 13:10:07 +00:00
2023-03-01 12:40:56 +00:00
/**
* Defines valid properties in InputSwitch component.
*/
export interface InputSwitchProps extends ToggleSwitch.ToggleSwitchProps {}
2022-09-06 12:03:37 +00:00
2024-01-14 13:38:51 +00:00
/**
* Defines current options in InputSwitch component.
*/
export interface InputSwitchContext extends ToggleSwitch.ToggleSwitchContext {}
2024-01-14 13:38:51 +00:00
export interface InputSwitchSlots extends ToggleSwitch.ToggleSwitchSlots {}
2022-09-06 12:03:37 +00:00
2023-03-01 12:40:56 +00:00
/**
* Defines valid emits in InputSwitch component.
*/
2024-05-16 14:05:43 +00:00
export interface InputSwitchEmitsOptions {}
export declare type InputSwitchEmits = EmitFn<InputSwitchEmitsOptions> & ToggleSwitch.ToggleSwitchEmits;
2022-09-06 12:03:37 +00:00
2023-03-01 12:40:56 +00:00
/**
* @deprecated Deprecated since v4. Use ToggleSwitch component instead.
*
2023-03-01 12:40:56 +00:00
* **PrimeVue - InputSwitch**
*
2023-03-01 12:59:47 +00:00
* _InputSwitch is used to select a boolean value._
2023-03-01 12:40:56 +00:00
*
* [Live Demo](https://www.primevue.org/toggleswitch/)
2023-03-01 12:40:56 +00:00
* --- ---
2023-03-03 10:55:20 +00:00
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
2023-03-01 12:40:56 +00:00
*
* @group Component
*
*/
declare const InputSwitch: DefineComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
2022-09-06 12:03:37 +00:00
declare module 'vue' {
export interface GlobalComponents {
InputSwitch: GlobalComponentConstructor<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
2022-09-06 12:03:37 +00:00
}
}
export default InputSwitch;