2021-05-13 07:29:46 +08:00
|
|
|
/**
|
|
|
|
* The `Dropdown` component displays a button which, when clicked, shows a
|
|
|
|
* dropdown menu beneath it.
|
|
|
|
*
|
|
|
|
* ### Attrs
|
|
|
|
*
|
|
|
|
* - `buttonClassName` A class name to apply to the dropdown toggle button.
|
|
|
|
* - `menuClassName` A class name to apply to the dropdown menu.
|
|
|
|
* - `icon` The name of an icon to show in the dropdown toggle button.
|
|
|
|
* - `caretIcon` The name of an icon to show on the right of the button.
|
|
|
|
* - `label` The label of the dropdown toggle button. Defaults to 'Controls'.
|
|
|
|
* - `accessibleToggleLabel` The label used to describe the dropdown toggle button to assistive readers. Defaults to 'Toggle dropdown menu'.
|
|
|
|
* - `onhide`
|
|
|
|
* - `onshow`
|
|
|
|
*
|
|
|
|
* The children will be displayed as a list inside of the dropdown menu.
|
|
|
|
*/
|
2021-08-19 17:17:15 +08:00
|
|
|
export default class Dropdown extends Component<import("../Component").ComponentAttrs, undefined> {
|
2021-05-13 07:29:46 +08:00
|
|
|
static initAttrs(attrs: any): void;
|
|
|
|
constructor();
|
|
|
|
showing: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Get the template for the button.
|
|
|
|
*
|
|
|
|
* @return {*}
|
|
|
|
* @protected
|
|
|
|
*/
|
|
|
|
protected getButton(children: any): any;
|
|
|
|
/**
|
|
|
|
* Get the template for the button's content.
|
|
|
|
*
|
|
|
|
* @return {*}
|
|
|
|
* @protected
|
|
|
|
*/
|
|
|
|
protected getButtonContent(children: any): any;
|
|
|
|
getMenu(items: any): JSX.Element;
|
|
|
|
}
|
|
|
|
import Component from "../Component";
|