
META-INF.resources.Multiselect.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 ClayForm, {ClayInput} from '@clayui/form';
import ClayMultiSelect from '@clayui/multi-select';
import React, {useState} from 'react';
export default function Multiselect({
additionalProps: _additionalProps,
clearAllTitle,
componentId: _componentId,
cssClass,
disabled,
disabledClearAll,
helpText,
id,
inputName,
inputValue: _inputValue,
isValid,
label,
locale: _locale,
multiselectLocator,
portletId: _portletId,
portletNamespace: _portletNamespace,
selectedItems: _selectedItems = [],
sourceItems,
...otherProps
}) {
const [inputValue, setInputValue] = useState(_inputValue ?? '');
const [selectedItems, setSelectedItems] = useState(_selectedItems);
return (
{label && }
{helpText && (
{helpText}
)}
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy