All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.js.components.inputs.BooleanInput.js Maven / Gradle / Ivy

/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

import {ClaySelectWithOption} from '@clayui/form';
import classNames from 'classnames';
import propTypes from 'prop-types';
import React from 'react';

import {BOOLEAN_OPTIONS} from '../../utils/constants';

function BooleanInput({className, disabled, onChange, propertyLabel, value}) {
	const handleChange = (event) => {
		onChange({value: event.target.value});
	};

	return (
		
	);
}

BooleanInput.propTypes = {
	className: propTypes.string,
	disabled: propTypes.bool,
	onChange: propTypes.func.isRequired,
	propertyLabel: propTypes.string.isRequired,
	value: propTypes.string,
};

export default BooleanInput;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy