@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
30 lines (29 loc) • 655 B
TypeScript
export interface ScrollOption {
/**
* callback function when scroll
*/
callback: Function;
}
/**
* Create a vue directive instance that can be used on an element
*
* Usage:
*
const directives = [
ScrollDirective({
callback: this.scrollCallback
})
]
<input type="text" v-model={this.keyword} {...{ directives }} />
*
* Or without options:
<div omfx-scroll={this.scrollCallback} ></div>
*
*/
export declare function ScrollDirective(option: ScrollOption): {
name: string;
args: {
callback: boolean;
};
};
export declare function registerScrollDirective(): void;