UNPKG

coveo-search-ui-extensions

Version:

Small generic components to extend the functionality of Coveo's Search UI framework.

42 lines (41 loc) 1.49 kB
import { Component, IResponsiveComponent, Dom, IResponsiveComponentOptions } from 'coveo-search-ui'; import { UserActions } from './UserActions'; /** * Handle the responsive button creation and positionning. */ export declare class ResponsiveUserActions implements IResponsiveComponent { root: Dom; ID: string; private userActions; private dropdownHeader; /** * Create a **ResponsiveUserActions** instance. * * @param root The root of the interface. * @param ID Identifier of the **ResponsiveUserActions**. * @param _options _unused parameter_. */ constructor(root: Dom, ID: string, _options: IResponsiveComponentOptions); /** * Register the **component** to the **ResponsiveComponentsManager**. * * @param root The root of the interface. * @param component The component to register as a responsive component. */ static init(root: HTMLElement, component: UserActions): void; /** * Register the user action component as a responsive component. * * @param component The component to register as a responsive component. */ registerComponent(component: Component): boolean; /** * On resize, will place the user actions button in the Dropdown Header Wrapper Section. */ handleResizeEvent(): void; /** * Always return true because the component always need a button. */ needDropdownWrapper(): boolean; private buildDropdownHeader; }