primevue-mirror/components/styleclass/StyleClass.d.ts

77 lines
2.1 KiB
TypeScript
Raw Normal View History

2023-03-02 11:26:12 +00:00
/**
*
* StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element.
*
2023-03-03 14:17:03 +00:00
* [Live Demo](https://primevue.org/styleclass)
*
* @module styleclass
2023-03-02 11:26:12 +00:00
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
2022-09-06 12:03:37 +00:00
2023-03-02 11:26:12 +00:00
/**
* Defines options of StyleClass.
*/
export interface StyleClassOptions {
/**
2023-03-02 14:53:19 +00:00
* Selector to define the target element. Available selectors are '@next', '@prev', '@parent' and '@grandparent'.
2023-03-02 11:26:12 +00:00
*/
selector?: '@next' | '@prev' | '@parent' | '@grandparent' | string | undefined;
/**
* Style class to add when item begins to get displayed.
*/
enterClassName?: string | undefined;
/**
* Style class to add during enter animation.
*/
enterActiveClassName?: string | undefined;
/**
* Style class to add when item begins to get displayed.
*/
enterToClassName?: string | undefined;
/**
* Style class to add when item begins to get hidden.
*/
leaveClassName?: string | undefined;
/**
* Style class to add during leave animation.
*/
leaveActiveClassName?: string | undefined;
/**
* Style class to add when leave animation is completed.
*/
leaveToClassName?: string | undefined;
/**
* Whether to trigger leave animation when outside of the element is clicked.
* @defaultValue false
*/
hideOnOutsideClick?: boolean | undefined;
/**
* Adds or removes a class when no enter-leave animation is required.
*/
toggleClass?: string | undefined;
}
/**
* Binding of StyleClass directive.
*/
export interface StyleClassDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
/**
* Value of the StyleClass.
*/
value?: StyleClassOptions | undefined;
}
/**
* **PrimeVue - StyleClass**
*
* _StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element._
*
* [Live Demo](https://www.primevue.org/styleclass/)
* --- ---
2023-03-03 10:55:20 +00:00
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
2023-03-02 11:26:12 +00:00
*
*/
2022-09-06 12:03:37 +00:00
declare const StyleClass: ObjectDirective;
export default StyleClass;