coveo-search-ui-extensions
Version:
Small generic components to extend the functionality of Coveo's Search UI framework.
26 lines (25 loc) • 1.01 kB
TypeScript
import { IResultsComponentBindings, Component } from 'coveo-search-ui';
import { IToggleableButton, IToggleableButtonOptions } from './ToggleableButton';
export declare class ToggleActionButton extends Component implements IToggleableButton {
element: HTMLElement;
options: IToggleableButtonOptions;
bindings?: IResultsComponentBindings;
static ID: string;
static ACTIVATED_CLASS_NAME: string;
static options: IToggleableButtonOptions;
private innerStatefulActionButton;
private activatedState;
private deactivatedState;
constructor(element: HTMLElement, options: IToggleableButtonOptions, bindings?: IResultsComponentBindings);
/**
* Indicates whether the toggle button is in the activated state.
*/
isActivated(): boolean;
/**
* Sets the toggle button to the specified state.
* @param activated Whether the button is activated.
*/
setActivated(activated: boolean): void;
onClick(): void;
private createInnerButton;
}