1 | import * as React from "react";
|
2 | import { SelectCallback } from "react-bootstrap";
|
3 | import DropdownToggle = require("./DropdownToggle");
|
4 | import DropdownMenu = require("./DropdownMenu");
|
5 |
|
6 | declare namespace Dropdown {
|
7 | export interface DropdownBaseProps {
|
8 | bsClass?: string | undefined;
|
9 | componentClass?: React.ElementType | undefined;
|
10 | disabled?: boolean | undefined;
|
11 | dropup?: boolean | undefined;
|
12 | id: string;
|
13 | onClose?: Function | undefined;
|
14 | onSelect?: SelectCallback | undefined;
|
15 | onToggle?:
|
16 | | ((isOpen: boolean, event: React.SyntheticEvent, metadata: {
|
17 | source: "select" | "click" | "rootClose" | "keydown";
|
18 | }) => void)
|
19 | | undefined;
|
20 | open?: boolean | undefined;
|
21 | pullRight?: boolean | undefined;
|
22 | role?: string | undefined;
|
23 | }
|
24 |
|
25 | export type DropdownProps = Dropdown.DropdownBaseProps & React.HTMLProps<Dropdown>;
|
26 | }
|
27 |
|
28 | declare class Dropdown extends React.Component<Dropdown.DropdownProps> {
|
29 | public static Menu: typeof DropdownMenu;
|
30 | public static Toggle: typeof DropdownToggle;
|
31 | }
|
32 | export = Dropdown;
|