primevue-mirror/components/lib/ripple/Ripple.d.ts

121 lines
2.9 KiB
TypeScript
Raw Normal View History

2023-03-02 11:11:01 +00:00
/**
*
* Ripple directive adds ripple effect to the host element.
*
2023-03-03 14:17:03 +00:00
* [Live Demo](https://primevue.org/ripple)
*
* @module ripple
2023-03-02 11:11:01 +00:00
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
2022-09-06 12:03:37 +00:00
2023-06-23 09:47:31 +00:00
/**
* Defines options of Ripple.
*/
export interface RippleOptions {
/**
* Uses to pass attributes to DOM elements inside the component.
2023-06-23 14:51:42 +00:00
* @type {RippleDirectivePassThroughOptions}
2023-06-23 09:47:31 +00:00
*/
2023-06-23 14:51:42 +00:00
pt?: RippleDirectivePassThroughOptions;
2023-06-23 09:47:31 +00:00
}
/**
* Custom passthrough(pt) options.
* @see {@link RippleOptions.pt}
*/
2023-06-23 14:51:42 +00:00
export interface RippleDirectivePassThroughOptions {
2023-06-23 09:47:31 +00:00
/**
* Uses to pass attributes to the root's DOM element.
2023-06-23 14:51:42 +00:00
* @see {@link RippleDirectivePassThroughOptions}
2023-06-23 09:47:31 +00:00
*/
2023-06-23 14:51:42 +00:00
root?: RippleDirectivePassThroughOptions;
2023-06-23 09:47:31 +00:00
}
/**
* Custom passthrough(pt) directive options.
*/
2023-06-23 14:51:42 +00:00
export interface RippleDirectivePassThroughOptions {
2023-06-23 09:47:31 +00:00
/**
* Uses to pass attributes to the life cycle hooks.
2023-06-23 14:51:42 +00:00
* @see {@link RippleDirectivePassThroughHooksOptions}
2023-06-23 09:47:31 +00:00
*/
2023-06-23 14:51:42 +00:00
hooks?: RippleDirectivePassThroughHooksOptions;
2023-06-23 09:47:31 +00:00
/**
* Uses to pass attributes to the styles.
2023-06-23 14:51:42 +00:00
* @see {@link RippleDirectivePassThroughCSSOptions}
2023-06-23 09:47:31 +00:00
*/
2023-06-23 14:51:42 +00:00
css?: RippleDirectivePassThroughCSSOptions;
2023-06-23 09:47:31 +00:00
}
2023-06-22 13:52:12 +00:00
/**
* Custom passthrough(pt) hooks options.
*/
2023-06-23 14:51:42 +00:00
export interface RippleDirectivePassThroughHooksOptions {
2023-06-22 13:52:12 +00:00
/**
* Called before bound element's attributes or event listeners are applied.
*/
created?: DirectiveBinding;
/**
* Called right before the element is inserted into the DOM.
*/
beforeMount?: DirectiveBinding;
/**
* Called when the bound element's parent component and all its children are mounted.
*/
mounted?: DirectiveBinding;
/**
* Called before the parent component is updated.
*/
beforeUpdate?: DirectiveBinding;
/**
* Called after the parent component and all of its children have updated all of its children have updated.
*/
updated?: DirectiveBinding;
/**
* Called before the parent component is unmounted.
*/
beforeUnmount?: DirectiveBinding;
/**
* Called when the parent component is unmounted.
*/
unmounted?: DirectiveBinding;
}
/**
* Custom passthrough(pt) css options.
*/
2023-06-23 14:51:42 +00:00
export interface RippleDirectivePassThroughCSSOptions {
2023-06-22 13:52:12 +00:00
/**
* Style class of the element.
*/
class?: any;
/**
* Inline style of the element.
*/
style?: any;
}
2023-03-02 11:11:01 +00:00
/**
* Binding of Ripple directive.
*/
2023-06-22 13:52:12 +00:00
export interface RippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
/**
* Value of the Ripple.
*/
value?: RippleOptions | undefined;
}
2023-03-02 11:11:01 +00:00
/**
* **PrimeVue - Ripple**
*
* _Ripple directive adds ripple effect to the host element._
*
* [Live Demo](https://www.primevue.org/ripple/)
* --- ---
2023-03-03 10:55:20 +00:00
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
2023-03-02 11:11:01 +00:00
*
*/
2022-09-06 12:03:37 +00:00
declare const Ripple: ObjectDirective;
export default Ripple;