MultiCombo API Overview
Initialization
import { MultiCombo } from "@svar-ui/react-core";
const dataset = [
{id:1, label:"First option"},
{id:2, label:"Second option"},
{id:3, label:"Third option"}
];
// Example usage in a React component
export default function App() {
return <MultiCombo options={dataset} />;
}
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
MultiCombo Properties
checkboxes | Optional. Defines whether MultiCombo options have checkboxes next to them |
disabled | Optional. Defines whether a MultiCombo is disabled |
error | Optional. Defines whether error styling is applied to a MultiCombo |
id | Optional. Sets an id for a MultiCombo |
options | Optional. Specifies a set of data items that will be used as MultiCombo options |
placeholder | Optional. Sets the text of the input's placeholder |
textField | Optional. Binds MultiCombo options to the input field by the specified key |
textOptions | Optional. Specifies a set of data items that will be used in the input and hidden from dropdown |
title | Optional. Sets a tooltip text with additional info about the control |
value | Optional. Specifies the selected values |
MultiCombo Events
change | Fires when a new value is selected in a multicombo |