export interface FocusOption {
/**
* True if element should get focus
*/
focus: boolean;
/**
* If focus should be gained once
* true (default): The focus will be set one time for this element, toogle focus to set again
* false: This element will keep it's focus, tab to next element will not work as long is focus is true
*/
once?: boolean;
}
/**
* Create a vue directive instance that can be used on an element
*
* Usage:
*
const directives = [
FocusDirective({
focus: this.inputFocus
})
]
*
* Or without options:
*
*/
export declare function FocusDirective(option: FocusOption): {
name: string;
args: {
once: boolean;
};
};
/**
* Only called internally to register directive globally with vue
*/
export declare function registerFocusDirective(): void;