META-INF.resources.js.components.criteria_sidebar.CriteriaSidebarSearchBar.js Maven / Gradle / Ivy
The newest version!
/**
* 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 ClayButton from '@clayui/button';
import ClayIcon from '@clayui/icon';
import PropTypes from 'prop-types';
import React from 'react';
export default function CriteriaSidebarSearchBar({onChange, searchValue}) {
const handleClear = (event) => {
event.preventDefault();
onChange('');
};
return (
onChange(event.target.value)}
placeholder={Liferay.Language.get('search-properties')}
type="text"
value={searchValue}
/>
);
}
CriteriaSidebarSearchBar.propTypes = {
onChange: PropTypes.func.isRequired,
searchValue: PropTypes.string,
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy