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
|
|
|
*
|
2024-04-18 14:15:29 +00:00
|
|
|
* [Live Demo](https://www.primevue.org/toggleswitch/)
|
2023-03-01 12:40:56 +00:00
|
|
|
*
|
|
|
|
* @module inputswitch
|
|
|
|
*
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
import * as ToggleSwitch from '../toggleswitch';
|
2024-05-16 10:50:43 +00:00
|
|
|
import { DefineComponent, EmitFn, GlobalComponentConstructor } from '../ts-helpers';
|
2023-05-05 13:10:07 +00:00
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
export interface InputSwitchPassThroughMethodOptions extends ToggleSwitch.ToggleSwitchPassThroughMethodOptions {}
|
2023-05-05 13:10:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link InputSwitchProps.pt}
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
export interface InputSwitchPassThroughOptions extends ToggleSwitch.ToggleSwitchPassThroughOptions {}
|
2023-05-05 13:10:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
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.
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
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.
|
|
|
|
*/
|
2024-04-18 14:15:29 +00:00
|
|
|
export interface InputSwitchContext extends ToggleSwitch.ToggleSwitchContext {}
|
2024-01-14 13:38:51 +00:00
|
|
|
|
2024-04-18 14:15:29 +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 {}
|
2024-05-16 10:50:43 +00:00
|
|
|
|
|
|
|
export declare type InputSwitchEmits = EmitFn<InputSwitchEmitsOptions> & ToggleSwitch.ToggleSwitchEmits;
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 12:40:56 +00:00
|
|
|
/**
|
2024-06-06 08:18:48 +00:00
|
|
|
* @deprecated since v4. Use ToggleSwitch component instead.
|
2024-04-18 14:15:29 +00:00
|
|
|
*
|
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
|
|
|
*
|
2024-04-18 14:15:29 +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
|
|
|
|
*
|
|
|
|
*/
|
2024-05-16 10:50:43 +00:00
|
|
|
declare const InputSwitch: DefineComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-05-16 10:50:43 +00:00
|
|
|
InputSwitch: GlobalComponentConstructor<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default InputSwitch;
|