UNPKG

smart-webcomponents-react

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-00JS8f7.svg)](https://jqwidgets.com/license/)

129 lines (128 loc) 5.91 kB
import React from "react"; import { GroupPanelProperties } from "./../index"; import { Animation, GroupPanelCloseButtonPosition } from './../index'; export { GroupPanelProperties } from "./../index"; export { Animation, GroupPanelCloseButtonPosition } from './../index'; declare let Smart: any; export { Smart }; export interface GroupPanelProps extends GroupPanelProperties { className?: string; style?: React.CSSProperties; onApply?: ((event?: Event) => void) | undefined; onCancel?: ((event?: Event) => void) | undefined; onCollapseAll?: ((event?: Event) => void) | undefined; onExpandAll?: ((event?: Event) => void) | undefined; onCreate?: ((event?: Event) => void) | undefined; onReady?: ((event?: Event) => void) | undefined; } /** Defines a group of grouped items in a panel. */ export declare class GroupPanel extends React.Component<React.HTMLAttributes<Element> & GroupPanelProps, any> { private _id; private nativeElement; private componentRef; get id(): string; /** Sets or gets the animation mode. Animation is disabled when the property is set to 'none' * Property type: Animation | string */ get animation(): Animation | string; set animation(value: Animation | string); /** Sets or gets the the position of the close button of group panel items. * Property type: GroupPanelCloseButtonPosition | string */ get closeButtonPosition(): GroupPanelCloseButtonPosition | string; set closeButtonPosition(value: GroupPanelCloseButtonPosition | string); /** Determines the data source that will be loaded to the group panel.Each member of the dataSource array is an object with the following fields:dataField - the dataField of the column to be grouped.dataType - the data type of the column to be grouped.groupIndex - the group order of columns. If this value is -1, the grouping will not be applied by this column initially.label - the column label to be displayed in the column selection input.icon - a specific class to be applied to the respective item in the column selection input.sortDirection - the sort direction to be applied when grouping. Possible values: 'ascending' and 'descending'. * Property type: {label: string, dataField: string, dataType: string, sortDirection: string, groupIndex: number}[] */ get dataSource(): { label: string; dataField: string; dataType: string; sortDirection: string; groupIndex: number; }[]; set dataSource(value: { label: string; dataField: string; dataType: string; sortDirection: string; groupIndex: number; }[]); /** Enables or disables the group panel. * Property type: boolean */ get disabled(): boolean; set disabled(value: boolean); /** Sets or gets the unlockKey which unlocks the product. * Property type: string */ get unlockKey(): string; set unlockKey(value: string); /** Sets or gets the language. Used in conjunction with the property messages. * Property type: string */ get locale(): string; set locale(value: string); /** Callback used to customize the format of the messages that are returned from the Localization Module. * Property type: any */ get localizeFormatFunction(): any; set localizeFormatFunction(value: any); /** Sets or gets the maximum number of columns to group by. If set to null, there is no limit. * Property type: number */ get maxLevel(): number; set maxLevel(value: number); /** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. * Property type: any */ get messages(): any; set messages(value: any); /** If the element is readonly, users cannot interact with it. * Property type: boolean */ get readonly(): boolean; set readonly(value: boolean); /** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. * Property type: boolean */ get rightToLeft(): boolean; set rightToLeft(value: boolean); /** If is set to true, the element cannot be focused. * Property type: boolean */ get unfocusable(): boolean; set unfocusable(value: boolean); get properties(): string[]; /** This event is triggered when the "Apply" button is clicked. * @param event. The custom event. */ onApply?: ((event?: Event) => void) | undefined; /** This event is triggered when the "Cancel" button is clicked. * @param event. The custom event. */ onCancel?: ((event?: Event) => void) | undefined; /** This event is triggered when the "Collapse all" button is clicked. * @param event. The custom event. */ onCollapseAll?: ((event?: Event) => void) | undefined; /** This event is triggered when the "Expand all" button is clicked. * @param event. The custom event. */ onExpandAll?: ((event?: Event) => void) | undefined; /** This event occurs, when the React component is created. * @param event. The custom event. */ onCreate?: ((event?: Event) => void) | undefined; /** This event occurs, when the React component is completely rendered. * @param event. The custom event. */ onReady?: ((event?: Event) => void) | undefined; get eventListeners(): string[]; constructor(props: any); componentDidRender(initialize: boolean): void; componentDidMount(): void; componentDidUpdate(): void; componentWillUnmount(): void; render(): React.ReactElement<{ ref: any; suppressHydrationWarning: boolean; }, string | React.JSXElementConstructor<any>>; } export default GroupPanel;