@carbon/ibm-products
Version:
Carbon for IBM Products
66 lines (65 loc) • 2.14 kB
TypeScript
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { ConditionGroup } from '../ConditionBuilder.types';
interface ConditionBuilderAddProps {
className?: string;
onClick: () => void;
addConditionSubGroupHandler?: () => void;
showConditionSubGroupPreviewHandler?: () => void;
hideConditionSubGroupPreviewHandler?: () => void;
showConditionPreviewHandler?: () => void;
hideConditionPreviewHandler?: () => void;
enableSubGroup?: boolean;
buttonLabel?: string;
tabIndex?: number;
group?: ConditionGroup;
}
declare const ConditionBuilderAdd: {
({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, group, }: ConditionBuilderAddProps): React.JSX.Element;
propTypes: {
/**
* handler for hiding sub group preview
*/
addConditionSubGroupHandler: any;
/**
* handler for hiding sub group preview
*/ /**
* tooltip label for plus button
*/
buttonLabel: any;
/**
* Provide an optional class to be applied to the containing node.
*/
className: any;
/**
* boolean to enable sub groups for the tree variant
*/
enableSubGroup: any;
/**
* handler for hiding sub group preview
*/
hideConditionPreviewHandler: any;
hideConditionSubGroupPreviewHandler: any;
/**
* handler for hiding sub group preview
*/ /**
* callback triggered on click of add button
*/
onClick: any;
showConditionPreviewHandler: any;
showConditionSubGroupPreviewHandler: any;
/**
* handler for hiding sub group preview
*/
/**
* Tab index
*/
tabIndex: any;
};
};
export default ConditionBuilderAdd;