UNPKG

1.28 kBTypeScriptView Raw
1interface HeaderIndex {
2 el: HTMLElement;
3 toolbars: ToolbarIndex[] | [];
4}
5interface ToolbarIndex {
6 el: HTMLElement;
7 background: HTMLElement;
8 ionTitleEl: HTMLIonTitleElement | undefined;
9 innerTitleEl: HTMLElement;
10 ionButtonsEl: HTMLElement[] | [];
11}
12export declare const cloneElement: (tagName: string) => Element;
13export declare const createHeaderIndex: (headerEl: HTMLElement | undefined) => HeaderIndex | undefined;
14export declare const handleContentScroll: (scrollEl: HTMLElement, scrollHeaderIndex: HeaderIndex, contentEl: HTMLElement) => void;
15export declare const setToolbarBackgroundOpacity: (toolbar: ToolbarIndex, opacity?: number | undefined) => void;
16/**
17 * If toolbars are intersecting, hide the scrollable toolbar content
18 * and show the primary toolbar content. If the toolbars are not intersecting,
19 * hide the primary toolbar content and show the scrollable toolbar content
20 */
21export declare const handleToolbarIntersection: (ev: any, mainHeaderIndex: HeaderIndex, scrollHeaderIndex: HeaderIndex, scrollEl: HTMLElement) => void;
22export declare const setHeaderActive: (headerIndex: HeaderIndex, active?: boolean) => void;
23export declare const scaleLargeTitles: (toolbars?: ToolbarIndex[], scale?: number, transition?: boolean) => void;
24export {};