/*! * 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/accordion"; import dxAccordion, { Properties } from "devextreme/ui/accordion"; import { Component as BaseComponent, IHtmlOptions } from "./core/component"; import NestedOption from "./core/nested-option"; declare type IAccordionOptions = React.PropsWithChildren & IHtmlOptions & { dataSource?: Properties["dataSource"]; itemRender?: (...params: any) => React.ReactNode; itemComponent?: React.ComponentType; itemKeyFn?: (data: any) => string; itemTitleRender?: (...params: any) => React.ReactNode; itemTitleComponent?: React.ComponentType; itemTitleKeyFn?: (data: any) => string; defaultItems?: any; defaultSelectedIndex?: any; defaultSelectedItem?: any; defaultSelectedItemKeys?: any; defaultSelectedItems?: any; onItemsChange?: (value: any) => void; onSelectedIndexChange?: (value: any) => void; onSelectedItemChange?: (value: any) => void; onSelectedItemKeysChange?: (value: any) => void; onSelectedItemsChange?: (value: any) => void; }>; declare class Accordion extends BaseComponent>> { get instance(): dxAccordion; protected _WidgetClass: typeof dxAccordion; protected subscribableOptions: string[]; protected independentEvents: string[]; protected _defaults: { defaultItems: string; defaultSelectedIndex: string; defaultSelectedItem: string; defaultSelectedItemKeys: string; defaultSelectedItems: string; }; protected _expectedChildren: { item: { optionName: string; isCollectionItem: boolean; }; }; protected _templateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } declare type IItemProps = React.PropsWithChildren<{ disabled?: any; html?: any; icon?: any; template?: any; text?: any; title?: any; titleTemplate?: any; visible?: any; render?: (...params: any) => React.ReactNode; component?: React.ComponentType; keyFn?: (data: any) => string; titleRender?: (...params: any) => React.ReactNode; titleComponent?: React.ComponentType; titleKeyFn?: (data: any) => string; }>; declare class Item extends NestedOption { static OptionName: string; static IsCollectionItem: boolean; static TemplateProps: { tmplOption: string; render: string; component: string; keyFn: string; }[]; } export default Accordion; export { Accordion, IAccordionOptions, Item, IItemProps };