19 lines
737 B
TypeScript
19 lines
737 B
TypeScript
|
import * as React from "react";
|
||
|
import { ReactComponentBase } from "tc-shared/ui/react-elements/ReactComponentBase";
|
||
|
import { RemoteIconInfo } from "tc-shared/file/Icons";
|
||
|
export interface DropdownEntryProperties {
|
||
|
icon?: string | RemoteIconInfo;
|
||
|
text: JSX.Element | string;
|
||
|
onClick?: (event: React.MouseEvent) => void;
|
||
|
onAuxClick?: (event: React.MouseEvent) => void;
|
||
|
onContextMenu?: (event: React.MouseEvent) => void;
|
||
|
children?: React.ReactElement<DropdownEntry>[];
|
||
|
}
|
||
|
export declare class DropdownEntry extends ReactComponentBase<DropdownEntryProperties, {}> {
|
||
|
protected defaultState(): {};
|
||
|
render(): JSX.Element;
|
||
|
}
|
||
|
export declare const DropdownContainer: (props: {
|
||
|
children: any;
|
||
|
}) => JSX.Element;
|