InputEnum Component
Description
The InputEnum
component is an advanced dropdown that retrieves values dynamically from an enumeration source. It supports:
- Dynamic data fetching
- Filtering by labels or values
- Customization through parameters
- Free solo input (custom values)
Props
Prop | Type | Default | Description |
---|---|---|---|
id |
string |
- | Unique identifier for the input. |
enumID |
number |
- | ID of the enumeration source. |
label |
string |
- | Label for the input. |
defaultValue |
string |
"" |
Initial selected value. |
onChange |
(data: { id: string, value: string }) => void |
- | Callback when selection changes. |
disabled |
boolean |
false |
Disables the input. |
variant |
"standard" | "outlined" | "filled" |
"standard" |
Input style variant. |
freeSolo |
boolean |
false |
Allows custom values to be typed. |
searchByLabel |
boolean |
false |
Enables searching by label instead of value. |
data |
IColumnsFilter | ITransformedObject |
undefined |
Custom data for options. |
dynamic_params |
string |
undefined |
Dynamic parameters for filtering results. |
fixed_params |
string |
undefined |
Fixed parameters for filtering results. |
sessionMode |
ESessionMode |
undefined |
Defines session-based filtering. |
overrideQueryPool |
string |
undefined |
Overrides the default query pool for fetching data. |
callFromTable |
boolean |
false |
Optimizes fetching when used in table cells. |
hideButton |
boolean |
false |
Hides the dropdown button if needed. |
Example Usage
Overriding the Default API
You can override the default API and set custom content:
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core