@carbon/ibm-products
Version:
Carbon for IBM Products
67 lines • 2.59 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 PropTypes from 'prop-types';
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: PropTypes.Requireable<(...args: any[]) => any>;
/**
* handler for hiding sub group preview
*/ /**
* tooltip label for plus button
*/
buttonLabel: PropTypes.Requireable<string>;
/**
* Provide an optional class to be applied to the containing node.
*/
className: PropTypes.Requireable<string>;
/**
* boolean to enable sub groups for the tree variant
*/
enableSubGroup: PropTypes.Requireable<boolean>;
/**
* handler for hiding sub group preview
*/
hideConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
hideConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
/**
* handler for hiding sub group preview
*/ /**
* callback triggered on click of add button
*/
onClick: PropTypes.Requireable<(...args: any[]) => any>;
showConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
showConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
/**
* handler for hiding sub group preview
*/
/**
* Tab index
*/
tabIndex: PropTypes.Requireable<number>;
};
};
export default ConditionBuilderAdd;
//# sourceMappingURL=ConditionBuilderAdd.d.ts.map