@rcsb/rcsb-saguaro-app
Version:
RCSB 1D Saguaro Web App
24 lines (23 loc) • 1.16 kB
TypeScript
import { GroupedOptionsInterface, SelectOptionInterface, SelectOptionProps } from "./SelectButton";
import { ReactNode } from "react";
export interface SelectButtonConfigInterface {
addTitle?: boolean;
defaultValue?: string | undefined | null;
width?: number;
dropdownTitle?: string;
optionProps?: (props: SelectOptionProps) => ReactNode;
isAdditionalButton?: boolean;
}
export declare class ComponentsManager {
private static readonly loaderSpinner;
private static readonly selectButtonMap;
private static readonly nodeMap;
static buildSelectButton(elementId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
static addSelectButton(elementId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
static clearSelectButton(elementId: string): void;
static clearAdditionalSelectButton(elementId: string): void;
static buildLoaderSpinner(elementId: string): void;
static unmountLoaderSpinner(elementId: string): void;
private static hideElement;
private static showElement;
}