/*!
* devextreme-react
* Version: 22.2.6
* Build date: Tue Apr 18 2023
*
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-react
*/
///
export { ExplicitTypes } from "devextreme/ui/menu";
import dxMenu, { Properties } from "devextreme/ui/menu";
import { Component as BaseComponent, IHtmlOptions } from "./core/component";
import NestedOption from "./core/nested-option";
declare type IMenuOptions = React.PropsWithChildren & IHtmlOptions & {
dataSource?: Properties["dataSource"];
itemRender?: (...params: any) => React.ReactNode;
itemComponent?: React.ComponentType;
itemKeyFn?: (data: any) => string;
defaultItems?: any;
defaultSelectedItem?: any;
onItemsChange?: (value: any) => void;
onSelectedItemChange?: (value: any) => void;
}>;
declare class Menu extends BaseComponent>> {
get instance(): dxMenu;
protected _WidgetClass: typeof dxMenu;
protected subscribableOptions: string[];
protected independentEvents: string[];
protected _defaults: {
defaultItems: string;
defaultSelectedItem: string;
};
protected _expectedChildren: {
animation: {
optionName: string;
isCollectionItem: boolean;
};
item: {
optionName: string;
isCollectionItem: boolean;
};
showFirstSubmenuMode: {
optionName: string;
isCollectionItem: boolean;
};
showSubmenuMode: {
optionName: string;
isCollectionItem: boolean;
};
};
protected _templateProps: {
tmplOption: string;
render: string;
component: string;
keyFn: string;
}[];
}
declare type IAnimationProps = React.PropsWithChildren<{
hide?: any;
show?: any;
}>;
declare class Animation extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
hide: {
optionName: string;
isCollectionItem: boolean;
};
show: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IAtProps = React.PropsWithChildren<{
x?: any;
y?: any;
}>;
declare class At extends NestedOption {
static OptionName: string;
}
declare type IBoundaryOffsetProps = React.PropsWithChildren<{
x?: any;
y?: any;
}>;
declare class BoundaryOffset extends NestedOption {
static OptionName: string;
}
declare type ICollisionProps = React.PropsWithChildren<{
x?: any;
y?: any;
}>;
declare class Collision extends NestedOption {
static OptionName: string;
}
declare type IDelayProps = React.PropsWithChildren<{
hide?: any;
show?: any;
}>;
declare class Delay extends NestedOption {
static OptionName: string;
}
declare type IFromProps = React.PropsWithChildren<{
left?: any;
opacity?: any;
position?: any;
scale?: any;
top?: any;
}>;
declare class From extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
position: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IHideProps = React.PropsWithChildren<{
complete?: any;
delay?: any;
direction?: any;
duration?: any;
easing?: any;
from?: any;
staggerDelay?: any;
start?: any;
to?: any;
type?: any;
}>;
declare class Hide extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
from: {
optionName: string;
isCollectionItem: boolean;
};
to: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IItemProps = React.PropsWithChildren<{
beginGroup?: any;
closeMenuOnClick?: any;
disabled?: any;
html?: any;
icon?: any;
items?: any;
selectable?: any;
selected?: any;
template?: any;
text?: any;
visible?: any;
render?: (...params: any) => React.ReactNode;
component?: React.ComponentType;
keyFn?: (data: any) => string;
}>;
declare class Item extends NestedOption {
static OptionName: string;
static IsCollectionItem: boolean;
static TemplateProps: {
tmplOption: string;
render: string;
component: string;
keyFn: string;
}[];
}
declare type IMyProps = React.PropsWithChildren<{
x?: any;
y?: any;
}>;
declare class My extends NestedOption {
static OptionName: string;
}
declare type IOffsetProps = React.PropsWithChildren<{
x?: any;
y?: any;
}>;
declare class Offset extends NestedOption {
static OptionName: string;
}
declare type IPositionProps = React.PropsWithChildren<{
at?: object | string | {
x?: any;
y?: any;
};
boundary?: any;
boundaryOffset?: object | string | {
x?: any;
y?: any;
};
collision?: object | string | {
x?: any;
y?: any;
};
my?: object | string | {
x?: any;
y?: any;
};
of?: any;
offset?: object | string | {
x?: any;
y?: any;
};
}>;
declare class Position extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
at: {
optionName: string;
isCollectionItem: boolean;
};
boundaryOffset: {
optionName: string;
isCollectionItem: boolean;
};
collision: {
optionName: string;
isCollectionItem: boolean;
};
my: {
optionName: string;
isCollectionItem: boolean;
};
offset: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IShowProps = React.PropsWithChildren<{
complete?: any;
delay?: any;
direction?: any;
duration?: any;
easing?: any;
from?: any;
staggerDelay?: any;
start?: any;
to?: any;
type?: any;
}>;
declare class Show extends NestedOption {
static OptionName: string;
}
declare type IShowFirstSubmenuModeProps = React.PropsWithChildren<{
delay?: number | object | {
hide?: any;
show?: any;
};
name?: any;
}>;
declare class ShowFirstSubmenuMode extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
delay: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IShowSubmenuModeProps = React.PropsWithChildren<{
delay?: number | object | {
hide?: any;
show?: any;
};
name?: any;
}>;
declare class ShowSubmenuMode extends NestedOption {
static OptionName: string;
static ExpectedChildren: {
delay: {
optionName: string;
isCollectionItem: boolean;
};
};
}
declare type IToProps = React.PropsWithChildren<{
left?: any;
opacity?: any;
position?: any;
scale?: any;
top?: any;
}>;
declare class To extends NestedOption {
static OptionName: string;
}
export default Menu;
export { Menu, IMenuOptions, Animation, IAnimationProps, At, IAtProps, BoundaryOffset, IBoundaryOffsetProps, Collision, ICollisionProps, Delay, IDelayProps, From, IFromProps, Hide, IHideProps, Item, IItemProps, My, IMyProps, Offset, IOffsetProps, Position, IPositionProps, Show, IShowProps, ShowFirstSubmenuMode, IShowFirstSubmenuModeProps, ShowSubmenuMode, IShowSubmenuModeProps, To, IToProps };