@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
36 lines (35 loc) • 1.71 kB
TypeScript
import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
import * as InternalRedux from '../../Redux/ActionsReducers/InternalRedux';
import * as SmartEditRedux from '../../Redux/ActionsReducers/SmartEditRedux';
import { PreviewInfo } from '../../Utilities/Interface/Preview';
import * as React from 'react';
import { SmartEditOperation } from '../../AdaptableOptions/EditOptions';
export interface SmartEditViewPanelComponentProps extends ViewPanelProps {
SmartEditValue: number | undefined;
SmartEditOperation: SmartEditOperation | undefined;
IsValidSelection: boolean;
PreviewInfo: PreviewInfo;
onSmartEditValueChange: (value: number) => InternalRedux.SmartEditChangeValueAction;
onSmartEditOperationChange: (MathOperation: SmartEditOperation) => InternalRedux.SmartEditChangeOperationAction;
onSmartEditCheckSelectedCells: () => InternalRedux.SmartEditCheckCellSelectionAction;
onApplySmartEdit: () => SmartEditRedux.SmartEditApplyAction;
}
interface SmartEditViewPanelComponentState {
SelectedColumnId: string;
}
declare class SmartEditViewPanelComponent extends React.Component<SmartEditViewPanelComponentProps, SmartEditViewPanelComponentState> {
private cleanupEvent?;
constructor(props: SmartEditViewPanelComponentProps);
componentDidMount(): void;
componentWillUnmount(): void;
render(): React.JSX.Element;
private checkSelectedCells;
private onSmartEditValueChange;
private getStatusColour;
private onApplyClick;
onApplySmartEdit(): any;
}
export declare let SmartEditViewPanelControl: import("react-redux").ConnectedComponent<typeof SmartEditViewPanelComponent, {
[x: string]: any;
}>;
export {};